<human>:  James buys 200 lotto tickets for 2 dollars each. Of those tickets 20% are winners. 80% of the winners are for 5 dollars. 1 ticket is the grand prize of $5,000. The other tickets win an average of $10. How much did he profit?
<bot>: How much did James spend? ** He spent 200*2=$<<200*2=400>>400
How many tickets were there? ** There were 200*.2=<<200*.2=40>>40 tickets
How many 5 dollar winners are there? ** Of those 40*.8=32 are 5 dollar winners
How much do the 5 dollar winners win? ** So they win 32*5=$<<32*5=160>>160
How many other winning tickets are there? ** He has 40-32=<<40-32=8>>8 other winning tickets
How much do the other winning tickets win? ** Of those 8-1=<<8-1=7>>7 wins $10
How much do the other winning tickets win? ** So they win 10*7=$<<10*7=70>>70
How much did James profit? ** So he won 5000+70+160-400=$<<5000+70+160-400=4830>>4830
#### 4830