Then, plug this into the pythagorean theorem: $\displaystyle a^{2} + b^{2} = c^{2}$ where c is the hypotenuse and a and b are the two legs.