If you know two points on a line, you can use them to write the equation of the line in slope-intercept form. The first step will be to use the points to find the slope of the line. This will give you the value of m that you can plug into y = mx + b. The second step will be to find the y-intercept.