Given:
Assume linear model: y = mx + b (y = cost, x = miles).
m = (8.50 − 4.25) / (7 − 2) = 4.25 / 5 = 0.875 dollars/mile.
Using point (2, 4.25):
4.25 = 0.875(2) + b
4.25 = 1.75 + b
b = 2.50
Equation: y = 0.875x + 2.50
Note: The original solution used b = 1.75, which gives y(2) = 3.50 ≠ 4.25. Correct base fare is $2.50.