Answer:
21 pieces of chickens.
Step-by-step explanation:
Given:
The farmer has a total of 40 animals. ( cows and chicken )
He counts the legs of all his animals and realizes he has a total of 118 legs.
Question asked:
How many chickens does the farmer have ?
Solution:
Let number of chickens = [tex]x[/tex]
Then number of cows = [tex]40-x[/tex]
Now, as here given that total number of legs are 118 of all the animals, and as we know that a chicken has two legs and cow has four legs, hence the equation will be :
Total number of legs = Number of legs having chickens + Number of legs having cows
[tex]118 = 2x+4(40-x)\\118=2x+160-4x[/tex]
[tex]118=-2x+160[/tex]
Subtracting both sides by 160
[tex]-42=-2x[/tex]
By adding both sides by minus
[tex]42 = 2x\\[/tex]
By dividing both sides by 2
[tex]x =21[/tex]
Hence, farmer have 21 pieces of chickens.