For a field trip 22 students rode in cars and the rest filled 5 buses how many students were in each bus if 317 students were on the trip.