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

### Instruction:
An apple tree produces 40 apples in its first year.  The second year the apple tree produces 8 more than double the amount of apples that it produced the first year, and the third year production went down by a fourth due to an insect infestation.  How many apples did the tree produce in total in the first three years?

### Response:
 ปีแรก: 40 ลูก
ปีที่สอง: 8 + 2(40) = 88 ลูก
ปีที่สาม: 88 - 88/4 = <<88-88/4=66>>66 ลูก
รวมทั้งหมด 40 + 88 + 66 = <<40+88+66=194>>194 ลูก