Just use the Pythagorean Theorem
(9 +x)^2 = 15^2 + x^2
x^2 + 18x + 81 = 225 + x^2
18x = 144
x = 8
So the three sides of the triangle are
15, 8 and 17
Answer:

Step-by-step explanation:
Given two right triangle legs
Use the Pythagorean theorem to calculate the hypotenuse from right triangle sides. Take a square root of sum of squares:
c = √(a² + b²)