The state fair is a popular field trip destination. This year the senior class at High School A and the senior class at High School B both planned trips there. The senior class at High School A rented and filled 14 vans and 6 buses with 564 students. High School B rented and filled 4 vans and 6 buses with 414 students. Every van had the same number of students in it as did the buses. Find the number of students in each van and in each bus.