@edgarlanda7834 Answer very simple, which is 24.
Cow is 4 legs(back and front),
3 cows are 3x 4 = 12
likewise dogs(2x4)=8
likewise Cat =4
Total = cows + dogs + cat (12+8+4)
= 24 legs
I am deeply saddened today, I hope/pray that Allah the Almighty forgives his sins, grants him a good place/resting place, and reunites him with his beloved [Prophet Muhammad] (S.A.W)."*