Hypotenuse Leg

In [math]\bigtriangleup GEO[/math] and [math]\bigtriangleup RAM[/math], [math]\angle E\cong\angle A=90^\circ[/math].  Additionally, [math]EO\cong AM[/math].  However, Vertices [math]G[/math] and [math]R[/math] can be altered.  When are the triangles congruent?

Information: Hypotenuse Leg