If both of the two legs are the same length, the distance between the two endpoints of each line (leg) must be the same distance. This means that the hypotenuse MUST be the same length. Using SSS, since all 3 sides must be the same length, the triangles are congruent.