This is a linear relation. For linear relations, we have the general form:
Where 'a' is the slope and 'b' is the intercept.
In this problem, we have that the intercept b is 200, because that's the point where the line crosses the y-axis. For now we have something like:
(here y is C and x is m)
To find the slope we have to use the intercept point (0, 200) and another point on the line. We can see that one of those points is (200, 500).
For a line with points (x1, y1) and (x2, y2), the slope is find like:
In this problem, the slope is:
Then, we have the equation that represents the relationship between the mileage and the cost: