First, you want to expand the equation so it'll be: x^2+2yx+y^2=x*2+2xy+y^2
Then you subtract y^2 from both sides: x^2+2yx+y^2-y^2=x*2+2xy+y^2-y^2
After that, you simplify: x^2+2yx=x*2+2xy
And subtract x^2+2xy from both sides: x^2+2yx-(x*2+2xy) =x*2+2xy-(x*2+2xy)
Finally, you simplify to get your final answer which is x=2, x=0