You use the pythagoras theorem to find the lenght of the hypotenuse:
You have the measure of the two legs: 40 and 9:
9.5m questions
12.2m answers