A class of 195 students went on a field trip. They took 7 vehicles, either cars or buses. Find the number of cars and buses they took if each car holds 5 students and each bus holds 45 students.