for a field trip 12 students rode in cars and the rest filled six buses how many students were in each bus if 342 students were on the trip