b. Write the rational function that represents the situation