Stream of consciousness rationale: The 3 birds have 2 legs each, for a total of 3 * 2 = 6 paws. The 5 dogs have 4 legs each, for a total of 5 * 4 = 20 paws. The 1 snake has no paws, and a spider has 8 legs. The total number of paws is 6 + 20 + 8 = 34.
The question and answer pair are described below.
Q: At the pet shop, there were 3 birds, 5 dogs, 4 snakes, and 1 spider for sale. How many legs were there in total?
A: 34