A rectangle has a width of 9 units and a length of 40 units. What is the length of a diagonal?

A. 31 units
B. 39 units
C. 41 units
D. 49 units