A tourist group arrived at the boat dock for a boat ride in the morning. There were 252 people in the group. Another tourist group of 288 people arrived for a boat ride in the afternoon. Each boat can hold 36 passengers.

How many boat trips were taken by the tourists in the morning and the afternoon, if each boat was full?