what theorem states if the legs of a right triangle are congruent to the corresponding legs of another right triangle then the triangles are congruent​