Use Pythagorean theorem....
I remember doing this but I forgot how.

Answer:
x = 41
Step-by-step explanation
9^2 + 40^2 = x^2
81 + 1600 = 1682
square root of 1681 = 41
x = 41