<human>:  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?
<bot>: How many sheep did Adam have? ** Adam had twice as many sheep as the cows, so 2 sheep/cow * 12 cows = <<2*12=24>>24 sheep.
How many pigs did Adam buy? ** For every sheep, he bought 3 pigs, so he bought 3 pigs/sheep * 24 sheep = <<3*24=72>>72 pigs.
How many animals were on the farm after the transaction? ** In total on the farm, there were 72 pigs + 24 sheep + 12 cows = <<72+24+12=108>>108 animals.
#### 108