a)The amount of untreated water inside the plant will be the difference between the difference f(t) - g(t), then, a(t) can be defined as follows:
b) the derivative of a(t) is the following:
c) the critical values of a(t) over the interval [0, 24) are: