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