1. You did not ask whose legs, so I will take the easiest one: 0, assuming you are asking about the number of legs of a legless man who owns those 6 dogs and puppies and fleas.
2. you said six dogs each HAD..., and then HAD, and ask how many ARE there, so it is so easy: 6x6 = 36 legs
:-)