There are 23 animals in the field. Some are pigs and some are ducks. There are 80 legs in all. How many of each animal are in the field?

Respuesta :

Answer:

Pigs = 17

Ducks = 6

Step-by-step explanation:

Let there be x pigs and y ducks in the field.

[tex]\implies x + y =23[/tex]

[tex]\implies y =23-x.....(1)[/tex]

Since, there are 80 legs in all.

Each pig has 4 legs and each duck has 2 legs. So, x pigs will have 4x legs and y ducks will have 2y legs.

Total legs = 4x + 2y

Total legs = 80 (Given)

[tex]\implies 4x + 2y =80....(2)[/tex]

From equations (1) & (2), we find:

[tex]\implies 4x + 2(23-x) =80[/tex]

[tex]\implies 4x + 46-2x =80[/tex]

[tex]\implies 2x =80-46[/tex]

[tex]\implies 2x =34[/tex]

[tex]\implies x =\frac{34}{2}[/tex]

[tex]\implies x =17[/tex]

[tex]\implies y =23-17[/tex]

[tex]\implies y =6[/tex]