In right triangles, if two legs are congruent and if the two hypotenuses are congruent, then the triangles are congruent. This is known as the hypotenuse leg theorem. Note that this is the SSA shortcut which does not apply to non-right triangles. Applying the Pythagorean Theorem shows that only one value is possible for the other leg. Therefore, the two triangles are also congruent by the SAS or SSS congruence shortcut.