The county 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 8 vans and 8 buses with 240 students. High School B rented and filled 4 vans and 1 bus with 54 students. Each van and each bus carried the same number of students. Find the number of students in each van and in each bus. Write a system of equations and use any method to solve.