###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?, ### Assistant: Adam had twice as many sheep as the cows, so 2 sheep/cow * 12 cows = 24 sheep.
For every sheep, he bought 3 pigs, so he bought 3 pigs/sheep * 24 sheep = 72 pigs.
In total on the farm, there were 72 pigs + 24 sheep + 12 cows = 108 animals. 
 So the answer is :  108