The lengths of the legs of a right triangle are 9 cm and 40 cm.

What is the length of the hypotenuse?

A. 39 cm
B. 41 cm
C. 49 cm
D. 65 cm​