Let be "d" the number of ducks in the barn and "p" the number of pigs in the barn.
According to the information given in the exercise, there are 12 heads and 32 legs.
Then:
- Assuming that each duck has 2 legs and each pig has 4 legs, you can set up this first equation:
- Since there are 12 heads, then the total number of ducks and pigs is 12. Knowing this, you can set up the second equation:
Now you can set up this System of Equations:
You can apply the Substitution Method in order to find the value of "d":
1. Choose the second equation and solve for "p":
2. Substitute this equation into the first original equation:
3. Solve for "d":
Therefore, the answer is: Option A.