We can put (months, cost) as a coordinate pair.
We can write two pair of points from the table:
![\begin{gathered} (x_1,y_1)=(2,268) \\ \text{and} \\ (x_2,y_2)=(3,322) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/7o70ko2tupruhv35g9j34oa4godw6z30qh.png)
The equation of the line can be written using point slope form of a line shown below:
![y-y_1=(y_2-y_1)/(x_2-x_1)(x-x_1)](https://img.qammunity.org/2023/formulas/mathematics/college/hkbzvop4iz62zgm93u190774353c4ig6id.png)
We substitute the points and get:
![\begin{gathered} y-y_1=(y_2-y_1)/(x_2-x_1)(x-x_1) \\ y-268_{}=(322-268)/(3-2)(x-2) \\ y-268=54(x-2) \\ y-268=54x-108 \\ y=54x-108+268 \\ y=54x+160 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/wwewfb17qlvygekk6z815k7rostdowqtlx.png)
If we use "m" and "t" for months and cost, we can write this equation as:
![t=54m+160](https://img.qammunity.org/2023/formulas/mathematics/college/m2iumq3ygq3nnc0anef2y1an7b1wjmulzr.png)