The senior class took an end of the year trip. There were 290 total students in buses and cars. If each bus holds 45 students and each car holds 5 students, how many of each vehicle type were taken?