It's a square so all angles and all sides are equal.

So HE and FG are equal (they're sides of the square).

Angles HEX and FGY are equal because they're corners of the square (and therefore equal).

Then you are given that EX = GY.

You have two sides and the included angle equal.

Take it from there.