m is the slope of the line. To find it we can do which is the difference between the y-coordinates divided by the difference between the x-coordinates.
So: . Now we have the slope, let's input a set of coordinates into the equation so that we can find the constant .
- Re-arranging to get b
Now re-write the equation as we have the constants.