how many legs are there in 5 dogs and 7 birds

Dog has 4 legs and bird has 2 legs
The 5 for dogs which is 5 ×4 =20
And 7for birds which is 7×2=14
The whole answer is 20+14 =34 legs in both animals