A farmer looks out into the barnyard and sees the pigs and the chickens. He says to his daughter, "I count 153 heads and 346 feet. How many pigs and how many chickens are out there?"

Respuesta :

Answer: There are 133 chickens and 20 pigs.

Step-by-step explanation:

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

Given : Number of heads of pigs and chicken = 153

Number of feet = 346

Since one chicken has 2 legs and one pig has 4 legs.

By considering the given information, we have the following system of equations:-

[tex]x+y=153------(1)\\\\ 2x+4y=346---------(2)[/tex]

Multiply 2 on both sides of (1), we get

[tex]2x+2y=306-----(3)[/tex]

Subtract (3) from (2), we get

[tex]2y=40\\\\\Rightarrow\ y=\dfrac{40}{2}=20[/tex]

Put value of y in (1), we get

[tex]x+20=153\\\\\Rightarrow\ x=153-20=133[/tex]

Hence, there are 133 chickens and 20 pigs.