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