The 22 students and the teacher in a class participated in a community service project providing backpacks to needy families. Each student bought 2 backpacks and the teacher bought 5 backpacks. If each backpack costs $13, how much money did the students and the teacher spend in all? A. $585 B. $351 C. $572 D. $637