He traded in the SNES for 150*.8=$<<150*.8=120>>120
Including the money he gave, he spent 120+80=$<<120+80=200>>200
He got 10+30=$<<10+30=40>>40 in change
So the NES cost 200-40=$<<200-40=160>>160
#### 160