There are 41 animals on a farm with only pigs and chickens. If there are 100 legs counted together, how many of each animal are there?

If there are p pigs and c chickens, count the animals and the legs:

p+c = 41
4p+2c = 100
Now solve as usual for p and c