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

### Instruction:
Adam had a farm with animals. He had 12 cows and twice as many sheep. He decided to buy 3 pigs for every sheep he had. How many animals were on the farm after the transaction?

### Response:
 Adam alikuwa na mara mbili ya kondoo kuliko ng'ombe, hivyo alikuwa na kondoo 24.
Alikunua nguruwe 3 kwa kila kondoo, hivyo alinunua jumla ya 24*3=<<24*3=72>>72 nguruwe.
Jumla, alikuwa na 12+24+72 = <<12+24+72=108>>108 wanyama kwenye shamba.