Answer:
Let ([tex]x_0, y_0[/tex]) and ([tex]x_1, y_1[/tex]) 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.
[tex]m = \frac{y_1-y_0}{x_1-x_0}[/tex]
To find b substitute [tex]x_0[/tex] and [tex]y_0[/tex] in the equation and clear b. (You can also replace [tex]x_1[/tex] and [tex]y_1[/tex])
[tex]y_0 = mx_0 + b\\ b = (y_0-mx_0)[/tex]
After finding the value of m and b, you already have the necessary parameters to write the equation of the line y = mx + b