Sophia's school took a field trip. a total of 21 vehicles were needed for the trip. some students took the bus, and some students car-pooled. there were 30 people on each bus and 4 people in each car. 318 people altogether attended the trip. how many buses were needed for the trip?