Answer:
Step-by-step explanation:
If all were chickens, there would be 26 legs. There are 14 legs more than that. Each pig contributes 2 additional legs, so there must be 14/2 = 7 pigs. The remaining 6 animals are chickens.
___
Check
7×4 + 6×2 = 28 +12 = 40 . . . . total legs