A triangle is congruent by HL if the hypotenuse and one of the legs is equal between the triangles.
replace the first equation into the second one
replace y into one of the equations
x must be equal to 5 and y to 2 in oder for the triangles to be congruent by hl.