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