human
Cody goes to the store and buys $40 worth of stuff. The taxes were 5%. After taxes, he got an $8 discount. Cody and his friend split the final price equally. How much did Cody pay?
assistant
How much were the taxes? ** The taxes were 40*.05=$<<40*.05=2>>2.
How much did Cody pay? ** So the price was 40+2=$<<40+2=42>>42.
How much did Cody pay? ** He got a discount so the price he paid was 42-8=$<<42-8=34>>34.
How much did Cody pay? ** Since he paid half his price was 34/2=$<<34/2=17>>17.
#### 17