In a class of 40 students, 17 have ridden an airplane, 28 have ridden a boat, 10 have ridden a train, 12 have ridden both an airplane and a boat, 3 have ridden a train only and 4 have ridden an airplane only. Some students in the class have not ridden any of the three modes of transportation and an equal number have taken all three. How many students have used all 3 modes of transportation? How many students have taken only the boat?



9 because nine is nine so its nine