Having y in the answer is fine. You're trying to find the slope of the graph at any given point with respect to x and y.

I got the same answer as o_O and rubah.