We bought 85 hats at the store. Blue hats cost $6 and green hats cost $7. The total price was $548. How many green hats did we buy?
Choose the correct answer.
A) 36  B) 38  C) 40  D) 42  E) 44
Let B be the number of blue hats and let G be the number of green hats.   B+G=85.   B=85-G.   6B+7G=548.   6(85-G)+7G=548.   510-6G+7G=548.   G=548-510= 
<gadget id="calculator">548-510</gadget>
<output>38</output>
38.   The answer is 38.
<result>B</result>
We bought 85 hats at the store. Blue hats cost $6 and green hats cost $7. The total price was $548. How many green hats did we buy?