Answer:
Sally has 200 pigs
Explanations:
Let the number of pigs be p
Let the number of chickens be c
Since there are a total of 420 animals:
p + c = 420..........................(1)
A pig has 4 legs
A chicken has two legs
The total number of legs = 1240
Therefore:
4p + 2c = 1240.............................(2)
Make p the subject of the formula in equation (1)
p = 420 - c............(3)
Substitute equation (3) into equation (2)
4(420 - c) + 2c = 1240
1680 - 4c + 2c = 1240
4c - 2c = 1680 - 1240
2c = 440
c = 440/2
c = 220
Substitute the value of c into equation (3)
p = 420 - c
p = 420 - 220
p = 200
Sally has 220 chickens and 200 pigs