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

### Instruction:
John worked 8 hours a day every day from the 3rd to the 8th, including the 3rd and not including the 8th.  How many hours did he work?

### Response:
 เขาทำงานเป็นเวลา 8-3=<<8-3=5>>5 วัน
ดังนั้นเขาทำงานเป็นเวลา 5*8=<<5*8=40>>40 ชั่วโมง