91.1k views
3 votes
Farmer Doug has some pigs and chickens. One day he counted 24 legs and 7 heads in the barnyard. How many Of each animal did Farmer Doug count?

User Meepmeep
by
8.9k points

2 Answers

0 votes
5 pigs and 2 chickens
User Sid Kshatriya
by
9.1k points
2 votes

Answer: Farmer Doug counts 2 chickens and 5 pigs.

Explanation:

Let x be the number of chickens and y be the number of pigs.

Since a chicken has 2 legs and a pig has 4 legs

According to the question , we have two equations :-


x+y=7.......................(1)\\\\2x+4y=24.........................(2)

Divide 2 on both sides in equation (2), we get


x+2y=12...............(3)

Now, Subtract equation (1) from (3), we get


y=5

Put y=5 in (1) , we get


x+5=7\\\\\Rightarrow\ x=7-5=2

Hence, Farmer Doug counts 2 chickens and 5 pigs.

User OnTheInternet
by
7.5k points