The slope-intercept equation of a line is:
y = mx + b
where m is the slope of the line, and b the value of y for which the line intercepts the y-axis.
Let's say we have two points (x1, y1) and (x2, y2). Then, to find the slop, we can do as follows:
m = (y2 - y1)/(x2 - x1)
To find the intercept, we can substitute one point and the slope into the equation y=mS+b:
y = (y2 - y1)/(x2 - x1)
This equation comes from the fact that the slope will be the same no matter which points we take from the line to find this slope. In the last calculation, we took a generic point (x, y) in the line.
Now, we use the value of a that we found in the last equation:
Therefore, the answer is
m = (y2 - y1)/(x2 - x1) and then substitute one point and the slope into the equation y=MS+b to find the yo intercept.