There are 12 animals in the barn. Some are chickens and some are pigs.
There are 32 legs in all. How many of each animal are there?