The answer will be 52 legs now. Check it yourself.
2 dogs = 8 legs
3 cats = 12 legs
1 giraffe = 4 legs
5 cows = 20 legs
1 duck = 2 legs
Bed = 4 legs
Human = 2 legs
Total = 52