For a field trip 20 students rode in cars and the rest filled eight buses. How many students were in each bus if 340 students were on the trip?