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

### Instruction:
A farmer is growing corn. For every 4 seeds he plants, he gets one ear of corn, that he can sell for $.1. It costs $.5 for a bag with 100 seeds. If he makes $40 in profit, how many ears did he sell?

### Response:
 Inagharimu $.005 kwa kila mbegu, kwa sababu .5 / 100 = <<.5/100=.005>>.005
Inagharimu $.02 kukuza sikio moja la mahindi, kwa sababu .005 x 4 = <<.005*4=.02>>.02
Kwa kila sikio la mahindi anapata faida ya $.098 kwa sababu .1 - .02 = .08
Ameuza masikio 500 kwa sababu 40 / .08 = <<40/.08=500>>500