Question #N370

A bakery sells cookies in packages of 6, 12, and 24. A customer buys 3 packages of cookies, and the total number of cookies is 42. If the customer bought at least one package of each size, how many packages of 12 cookies did the customer buy?
A. 1
B. 2
C. 3
D. 4