Graph the piecewise function, and then construct a piecewise function that models each leg of the triathlon, including the domain restrictions.