We can put (months, cost) as a coordinate pair.
We can write two pair of points from the table:

The equation of the line can be written using point slope form of a line shown below:

We substitute the points and get:

If we use "m" and "t" for months and cost, we can write this equation as:
