There are 13 animals in a barn. Some are chickens some are pigs . Altogether there are 40 legs in all . How many of each animal are there
2C + 4P = 40,
C + P =13, solve for C, P
C = 6 Chickens
P =7 Pigs