At the pet shop, there were 3 birds, 5 dogs, 4 snakes, and 1 spider for sale. How many legs were there in total? Let's think step by step and output the final answer after "####".
user
The 3 birds have 2 legs each, for a total of 3 * 2 = <<3*2=6>>6 paws.
The 5 dogs have 4 legs each, for a total of 5 * 4 = <<5*4=20>>20 paws.
The 1 snake has no paws, and a spider has 8 legs.
The total number of paws is 6+20+8=<<6+20+8=34>>34.
#### 34
At the pet shop, there were 3 birds, 5 dogs, 4 snakes, and 1 spider for sale. How many legs were there in total?
train