<human>:  James earns $20 an hour while working at his main job. He earns 20% less while working his second job. He works 30 hours at his main job and half that much at his second job. How much does he earn per week?
<bot>: How much does James earn while working his second job? ** James earns 20*.2=$<<20*.2=4>>4 less while working his second job
How much does James earn an hour? ** So he earns 20-4=$<<20-4=16>>16 an hour
How much does James earn at his first job? ** At his first job he earns 20*30=$<<20*30=600>>600
How many hours does James work at his second job? ** He works 30/2=<<30/2=15>>15 hours at his second job
How much does James earn at his second job? ** So he earns 15*16=$<<15*16=240>>240
How much does James earn per week? ** So he earns 600+240=$<<600+240=840>>840 a week
#### 840