We bought 85 hats at the store. Blue hats cost $6 and green hats cost $7. The total price was $550. How many green hats did we buy?	Choices:
A) A)36 B) B)40 C) C)41 D) D)42 E) 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=550.   6(85-G)+7G=550.   510-6G+7G=550.   G=550-510= 
<gadget id="calculator">550-510</gadget>
<output>40</output>
40.   The answer is 40.
<result>B</result>
We bought 85 hats at the store. Blue hats cost $6 and green hats cost $7. The total price was $550. How many green hats did we buy?