According to the given figure, the common parts between triangles are angle G, side GH and angles H and E being equal to 90°.
So, the similar triangles are FHG and HEG because that's the position where the corresponding equivalent parts match.
Additionally, triangle HFE would be similar to triangles FGH and HGE.