William bought pencil boxes for his art class. Each box costs $3.50. He gave $30 to the cashier and got $5.50 as change. How many pencil boxes did he buy?

A. 3

B. 4

C. 7

D. 10


Help It's for benchmark testing so I need it now!! D: