The sides of a right triangle can be found using the Pythagorean Theorem: a^2+b^2=c^2
c is the hypotenuse (the longest side) of the right triangle and a and b are the two other legs. Knowing any two sides of the right triangle, you can find the other using this formula.