The perimeter of a rectangle is 42 inches. If the width of the rectangle is 6 inches, what is the length?
A. 36 inches
B. 21 inches
C. 15 inches
D. 30 inches