Let's use a system of equations to solve the problem. Let D be the number of ducks and P be the number of pigs.
We have two pieces of information:
1. The total number of animals is 38: D + P = 38
2. The total number of legs is 96 (ducks have 2 legs, pigs have 4 legs): 2D + 4P = 96
Now, let's solve this system of equations.
From the first equation ( D + P = 38 ), we can express D in terms of P: D = 38 - P .
Substitute this expression for D into the second equation:
2(38 - P) + 4P = 96
Simplify and solve for P:
76 - 2P + 4P = 96
Combine like terms:
2P = 20
Divide by 2:
P = 10
Now that we know P = 10, we can find D using the first equation:
D + 10 = 38
Subtract 10 from both sides:
D = 28
So, there are 28 ducks and 10 pigs. Therefore, the correct option is:
**D. 24 ducks and 14 pigs**
Hope this helps :)