During typhoon Ambo, PAGASA tracks the amount of accumulating rainfall. For the first three hours of typhoon, the rain fell at a constant rate of 25mm per hour. The typhoon slows down for an hour and started again at a constant rate of 20 mm per hour for the next two hours. Write a piecewise function that models the amount of rainfall as function of time.