Hi there!
Use the Pythagorean theorem to solve for the missing side-length:
c² = a² + b², where:
c = hypotenuse (diagonal) of the triangle
a, b are legs of the triangle
Plug in the given values:
8² = 5² + x²
Simplify:
64 = 25 + x²
Subtract both sides by 25:
39 = x²
Square root both sides:
x ≈ 6.2