John buys game loot boxes for $5 each.  The average value of items inside is $3.5.   He spends $40 on loot boxes.  What is the average amount he lost?
He bought 40/5=
<gadget id="calculator">40/5</gadget>
<output>8</output>
8 boxes.
He loses an average of 5-3.5=$
<gadget id="calculator">5-3.5</gadget>
<output>1.5</output>
1.50 per box.
So he loses an average of 1.5*8=$
<gadget id="calculator">1.5*8</gadget>
<output>12</output>
12.

<result>12</result>