The senior classes at High School A and High School B planned separate trips to Yellowstone National Park. The senior class at High School A rented and filled 9 vans and 14 buses with 710 students. High School B rented and filled 13 vans and 5 buses with 371 students. Each van and each bus carried the same number of students. Find the number of students in each van and in each bus.