The equation of a line can be written using the slope-intercept form given as
For that equation, we need to find m (rate of change) and c (y-intercept).
To find m, we can use the formula
Let us pick any two points on the graph such that
Substituting these into the equation, we have
The intercept, c, can be calculated by substituting the rate of change, m, and any point coordinates to the equation of a line.
Let us pick the point
Substituting, we have
Therefore, we have the equation of the line to be
Multiplying all terms by 2 to clear out the fraction, we get the equation to be