### Home > INT2 > Chapter 12 > Lesson 12.2.3 > Problem 12-111

Arik has purchased a used car. To help pay for his expenses, Arik uses his car to run errands for his neighbors, such as picking up groceries and going to the hardware store.

Arik charges a flat fee of

for errands that require driving less than three miles, and an additional per mile for longer errands. Write a piecewise-defined function that represents Arik’s earnings. Arik keeps careful records of his expenses. Gas is about

/gal, and his gas mileage averages mi/gal. His maintenance costs are predicted to be /mile. Write a function that represents Arik’s fuel and maintenance costs per mile driven. How can you compare the price of gas to the gas mileage of his car?

Write a new piecewise function that represents the profit Arik makes. What is Arik’s predicted profit for an errand that requires

miles of driving? miles of driving? Incorporate your answers from part (b) into the piecewise function from part (a) to create the new piecewise function.