Jeff has a total of 22 chickens and pigs altogether. When he counted the total amount of legs the farm animals has, he got the answer of 78. How many pigs are there? How many chickens are there?

2 answers

if there are p pigs, then the rest (22-p) are chickens. So, counting the legs,
4p + 2(22-p) = 78
Thank you!