$5$ pairs of wings means there are $5$ ducks, so there are $18-5\times2=8$ legs for dogs, which is $8\div4=2$. Thus, there are $2+5=7$ animals and they will lift $7$ legs. 
Daniel raises some ducks and dogs. All the ducks and dogs have $18$ legs and $5$ pairs of wings in total. If all the ducks and dogs each lifts one leg off the ground, they lift~\uline{~~~~~~~~~~}~legs in total. 
Options:
A: $$18$$ 
B: $$13$$ 
C: $$9$$ 
D: $$7$$ 
E: $$5$$ 