human
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?
assistant
How many boxes did John buy? ** He bought 40/5=<<40/5=8>>8 boxes
How much does John lose on average? ** He loses an average of 5-3.5=$<<5-3.5=1.50>>1.50 per box
How much does John lose in total? ** So he loses an average of 1.5*8=$<<1.5*8=12>>12
#### 12