For simplicity, let dy/dx = y'. So taking implicit differentiation of your problem is:
2x -2xy -x2y' +y2 = x(2y)y' + 2yy' = 0
Solve for y' to get your answer in terms of x and y.
Hint: Any term where you have both x and y, always use the "product rule" of differentiation.