A customer purchased a total of 10 hats and scarves. Each hat cost $4.50 and each scarf cost $3.00. The customer spent $36.00 all together.

How many hats did the customer buy?

Enter your answer in the box.

hats