A group of foreign students visited the Smithsonian Museum.
Some students took taxis and 3 students took a subway from
their hotel. Each taxi carried 4 students. On the way back,
8 students took the subway while the rest took taxis. Each taxi
carried 3 students. The number of taxis and the number of
students were the same for both trips. How many students
and how many taxis were there for each trip?