I have a rectangle of sides x and y

x+y=5

The diagonal of the rectangle is 4

Show that 2x^2-10x+9=0

I did

so i tried doing a simultaneous equation by cancelling out the y^2 first

I did the x+y=10 times (x-y)

So I added them together

Now I'm stuck. What have I done wrong?