Answer:
x = -1
y = 3
Step-by-step explanation:
If the hypothenuse and the legs are congruent, we can write the following equations:
3y + x = y + 5
y - x = x + 5
So, taking the second equation and solving for y, we get:

Replacing y on the first equation:

So, solving for x, we get:

So, the value of y is:

Therefore, the values of x is -1 and the value of y is 3