A grocery store sells two types of cereal: Brand A and Brand B. The price of Brand A is $3.50 per box, and the price of Brand B is $4.00 per box.
A customer bought a total of 10 boxes of cereal for $36.
How many boxes of Brand A did the customer buy?