A farmer plants 3 times as much wheat as corn on his land. If he plants no more than 36 acres, what is the greatest number of acres that can be used for corn?

A. 27 acres
B. 9 acres
C. 18 acres
D. 4 acres