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