Answer:
Let (
) and (
) be two points belonging to a line, then from these two points we can find the equation of the line of the form
y = mx + b
where m is the slope and b is the cut point with the y axis.
the slope of the line is found with the following formula.

To find b substitute
and
in the equation and clear b. (You can also replace
and
)

After finding the value of m and b, you already have the necessary parameters to write the equation of the line y = mx + b