If two legs of a right triangle are equal to two legs of another right triangle, then the right triangles are congruent.
If two sides (legs) of right triangles are equal, triangles are congruent by RHS.