find the values of x and y.

x is equal to 38 degrees and y is equal to 4.
In order to find y, you simply need to not that these are congruent triangles. We can tell this through the side-angle-side method. After finding that they are congruent, we can match the y side with its counterpart on the other triangle, which is 4. Therefore, y = 4.
As for the x, we know that in it's triangle, x is paired with a right angle and an angle of 52 degrees. since all triangles add up to 180 degrees, we can subtract those numbers to find the total.
180 - 52 - 90 = 38 degrees