He spent 200*2=$<<200*2=400>>400
There were 200*.2=<<200*.2=40>>40 tickets
Of those 40*.8=32 are 5 dollar winners
So they win 32*5=$<<32*5=160>>160
He has 40-32=<<40-32=8>>8 other winning tickets
Of those 8-1=<<8-1=7>>7 wins $10
So they win 10*7=$<<10*7=70>>70
So he won 5000+70+160-400=$<<5000+70+160-400=4830>>4830
#### 4830