A class used cars and vans to go on a field trip because all of the buses were already in use. They used 9 vehicles to go on the trip. Each car holds 3 students and each van holds 13 students. If 97 students went on the trip, then how many of each type of vehicle did the class use?