y: cost
x: number of days
the following points are on the line (30, 1200) and (60, 1500)
The slope of a line given two points (x1, y1) and (x2, y2) is computed as follows:
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/78uaqhwt0aws3qfwxigaftpihnmb1gzxtp.png)
Replacing with (30, 1200) and (60, 1500), we get:
![m=(1500-1200)/(60-30)=(300)/(30)=10](https://img.qammunity.org/2023/formulas/mathematics/college/5oz5ijl4nn97bxsz4h7pakqieyij8nrukt.png)
The slope-intercept form of a line is:
y = mx + b
where m is the slope and b the y-intercept.
Replacing with point (30, 1200) and m = 10, we get:
1200 = 10(30) + b
1200 = 300 + b
1200 - 300 = b
900 = b
Then, the equation is:
y = 10x + 900