Answer:
2d+4p
Step-by-step explanation:
ducks have 2 legs so 2 times the number of ducks (n) and pigs have 4 legs so 4 times the number of pigs