A farmer saw some chickens and pigs in a field.
He counted heads and legs.
How many chickens and how many pigs did the farmer see?
Find the number of chickens and the number of pigs:
Step 1. Set up the two linear equations:
Let the number of chickens be and the number of pigs be .
As we know chickens have two legs and pigs have four legs, form the equations:
….(1) [Number of heads counted were ]
….(2) [Number of legs counted were ]
Step 2. Substitute the value of from equation (1) in equation (2) :
Step 3. Solve for :
Hence, there were chickens.
Step 4. Substitute the value of in the (1) equation to get the value of y:
Hence, there were pigs.
Hence, the number of chickens is and number of pigs is .