Andy ate three doughnuts less than Chad. Together, they ate 21 doughnuts. How many doughnuts did Andy eat?

A. 8 doughnuts
B. 9 doughnuts
C. 10 doughnuts
D. 12 doughnuts