If two right triangles have a hypotenuse that is formed by the same line, what you essentially have is two right triangles with the same hypotenuse.
In other words, you have a right triangle reflected about its hypotenuse, creating a second, congruent right triangle.
Hope this helps!