The perimeter of a rectangle is 40 inches. If the width of the rectangle is 6 inches, what is the length?

A. 14 inches
B. 34 inches
C. 20 inches
D. 28 inches