I've attached a picture too.
You have 2 congruent right triangles whose legs are x and y.
Additionally there is a right triangle with the hypotenuse x and one leg has the length 6'' (in orange).
With the grey right triangle you get:
Replace x by the first term: