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.

# Answer

34
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
At the pet shop, there were 3 birds, 5 dogs, 4 snakes, and 1 spider for sale. How many legs were there in total?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
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