A 36-inch yardstick is cut into 3 unequal pieces that form the sides of a triangle. If the length of each piece, in inches, is a whole number, what is the maximum possible length of the longest piece?
A. 13 inches
B. 17 inches
C. 24 inches
D. 33 inches