Start by finding the gradient, which is m.
The concept of gradient represents the rate of change from a point to another point within a timeframe or distance. This can be solved using the rise over run formula:

, where

and

are the points.
Now, the equation passes through both points, so either point will have to satisfy the equation. Thus, we can put them into point-gradient form.

, where

represent a point that the line passes through. You can rearrange it to yield an equation with y being the subject.