<human>:  Tom needs to buy a new gaming system. He trades in his super Nintendo for an original NES. The SNES is worth $150 and the store gives him 80% of that value. He gives $80 and gets back $10 change and a game worth $30. How much was the NES on sale for?
<bot>: How much did Tom get for the SNES? ** He traded in the SNES for 150*.8=$<<150*.8=120>>120
How much did Tom spend? ** Including the money he gave, he spent 120+80=$<<120+80=200>>200
How much did Tom get in change? ** He got 10+30=$<<10+30=40>>40 in change
How much was the NES on sale for? ** So the NES cost 200-40=$<<200-40=160>>160
#### 160