Below is an instruction that describes a task. Write a response that appropriately completes the request in Thai. Please answer in Thai.

### Instruction:
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?

### Response:
 ภาษีมูลค่าเพิ่มคือ 40*.05=$<<40*.05=2>>2 บาท
ราคาคือ 40+2=$<<40+2=42>>42 บาท
หลังจากหักส่วนลด ราคาคือ 42-8=$<<42-8=34>>34 บาท
ดังนั้นเขาจ่าย 34/2=$<<34/2=17>>17 บาท