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