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

### Instruction:
Frank picked 36 apples. Susan picked 3 times as many apples as Frank. If Susan gave out half of her apples, and Frank sold a third of his, how many in total do they have left?

### Response:
 Susan alipata matofaa mara tatu ya 36 ambayo ni 3*36 = <<3*36=108>>108 matofaa
Nusu ya 108 ni 108/2 = <<108/2=54>>54 matofaa
Susan alitoa matofaa 108-54 = <<108-54=54>>54 matofaa
Frank aliuza theluthi ya 36 ambayo ni 36*(1/3) = <<36*(1/3)=12>>12 matofaa
Frank ana matofaa 36-12 = <<36-12=24>>24 matofaa
Jumla yao yaliyosalia ni 24+54 = <<24+54=78>>78 matofaa