2. In the buses of a travel agency, members of a tourist group need to be arranged so that each bus has the same number of tourists. At the beginning, 22 tourists entered each bus, leaving one tourist unscheduled. However, one bus left empty, and the tourists were then evenly distributed among the remaining buses. How many tourists and buses were there at the beginning, if no more than 32 tourists entered each bus?