The formula a^2 + b^2 = c^2 can be used to find any of the legs of the triangle. a and b are legs of the triangle and c is the hypotenuse. We can substitute known values into the equation:
a^2 + b^2 = c^2
One leg is 5 so we can put that in as a. And c, the hypotenuse, is 8.