Answer:

Explanation:
Since a duck has two legs, a pig has four legs, and a chicken has two legs, we can write the following system of equations:
, where
is the number of ducks on the farm,
is the number of chickens, and
is the number of pigs.
Substituting, we get:

Now substitute
into
to get the number of chickens:
