👤

Christmas shopping is in full swing and the owner of the parking garage wants to take advantage of the crowds. The owner increases her rate for the first two hours to $5 and maintains an hourly fee of $2 per hour after the first two hours. Write a piecewise function f(x) that represents this change.

Answer :

The piecewise function is f(x)

The first two hours is $5

Two hours after that is derived as x - 2 (where x is the total number of hours)

Therefore

[tex]f(x)=5+2(x-2)[/tex]