Let x = number of miles
f(x) = cost
5, if x ≤ 2
f(x) =
5 + 1.2(x-2), if x > 2
Simplify to obtain:
5, if x ≤ 2
f(x) =
1.2x + 2.6, if x > 2