Marcia wants to buy some fruit. Apples cost $2, bananas cost $1, and oranges cost $3. If Marcia buys 12 apples, 4 bananas and 4 oranges, what is the average cost of each piece of fruit in dollars?
Find the price of each group of fruit
12 apples * $2 per apple = $
<gadget id="calculator">12*2</gadget>
<output>24</output>
24
4 bananas * $1 per banana = $
<gadget id="calculator">4*1</gadget>
<output>4</output>
4
3 oranges * $4 per orange = $
<gadget id="calculator">3*4</gadget>
<output>12</output>
12
$24 + $4 + $12 = $
<gadget id="calculator">24+4+12</gadget>
<output>40</output>
40 in total that was spent
12 + 4 + 4 = 
<gadget id="calculator">12+4+4</gadget>
<output>20</output>
20 total fruits bought
$40 / 20 fruits = $
<gadget id="calculator">40/20</gadget>
<output>2</output>
2 per fruit.

<result>2</result>