For a boat to float in a tidal bay, the water must be at least 2.5 meters deep. The depth of water around the boat, d(t), in meters, where t is measured in hours since midnight, is
(a) What is the period of the tides in hours?
(b) If the boat leaves the bay at midday, what is the latest time it can return before the water becomes too shallow?