Given the similar right triangles in the figure. Find the exact values of x and y?

enter image source here