What is the equation, in slope-intercept form, that relates the cost compared to the miles traveled for a Red Cab?

Step-by-step explanation:
the general slope intercept form is
y = ax + b
a is the slope. it is expressed as ratio y change / x change when going from one point to another.
b is the y-intercept (the point, where the line crosses the y-axis, meaning the y value when x=0).
we get b by using the point coordinates in the equation and solve for b.
costs are on the y axis, miles are in the x axis.
so, what points do we see on the chart for the red taxi ?
let's start with the point right in the y-axis : (0, 2).
that gives us the y- intercept automatically.
and then let's pick e.g. the point, where both lines cross : (3, 8).
so, for the slope we look at the coordinate changes :
x changes by +3 (from 0 to 3).
y changes by +6 (from 2 to 8).
the slope is then 6/3 = 2.
and again, the y- intercept is +2.
therefore, the line equation is
y = 2x + 2