(8.50 - 4.25) / (7 - 2) = 0.875
This means that the cost increases by $0.875 for each additional mile. Therefore, the equation that models the cost y of a cab ride that is x miles is:
y = 0.875x + base fare
To find the base fare, we can use either of the given data points and substitute the values for x and y into the equation:
For the first data point: 4.25 = 0.875 * 2 + base fare
For the second data point: 8.50 = 0.875 * 7 + base fare
Solving either of these equations, we find that the base fare is $1.75. Therefore, the final equation that models the cost y of a cab ride that is x miles is:
y = 0.875x + 1.75