The equation of the line, in slope-intercept form, is written as
wherein m is the slope of the line and b is the y-intercept.
The first step to solve the equation of the line that passes through two points is to find the slope of the line given two points. The slope of the line can be computed using the equation
For points (5, -4) and (-1, 8), the slope of the line is
Now, we have the initial equation of the line written as
To solve for the value of b, we use one of the points and substitute it on the initial equation above. In my case, I will be using points (5,-4), we have
Hence, the equation of the line that passes through (5,-4) and (-1,8) is