If you know that two sides of two different right triangles are going to be congruent to each other you can always use th pythagorean theorem to get the third side and then the third side is uniquely constrained by the lengths of the other two sides because it is a right triangle and so these are all ways of getting to the same thing