Here is an explanation. You will need the slope of the line that passes through the two points (x1,y1) and (x2,y2), that is the ratio rise divided by run [from point (x1,y1) to point (x2,y2)]:
slope = m = (y1-y2)/(x1-x2)
Once you found the slope, the equation is
y - y1 = m(x - x1).
You can use either point in the equation.
Any questions?