By the Pythagorean theorem (for right triangles):
\(c^{2}= a^{2} + b^{2}\)
where a and b represent the lenght of the legs and c represents
the lenght of hypotenuse.
\(a = 7, b = 24, c = x\)
\(x^{2} = 7^{2} + 24^{2} = 49 + 576 = 625\)
Next, we obtain the value of x by taking the square root:
\(x = \sqrt x^{2} = \sqrt625=25\)

\(x = 25\)

\(x = 25\)