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

### Instruction:
Mary bought six apples from the store. From the apples she bought, for each that Mary ate, she planted two trees from the remaining ones. How many apples did Mary eat?

### Response:
 Baada ya kupanda miti, Mary alibakiwa na matofaa 6-2=<<6-2=4>>4.
Kwa kuwa kila wakati Mary alipanda miti miwili, alikula tufaa moja, Mary alikula matofaa 4/2=<<4/2=2>>2.