Ex: You are given two points...let's say (1, 3) and (4, 9)
First....find the slope, (m) = [9 - 3 ] / [ 4 - 1] = 6/3 = 2
Use the slope and one of the points to write the equation in slope-intercept form....I'll use the first point.....although, the second would work, too..........so we have, in point-slope form :
y - y1 = m (x - x1) where y1 = 3, m is the slope = 2, and x1 = 1 so we have
y - 3 = 2(x - 1) simplify the right side
y - 3 = 2x - 2 add 3 to both sides
y = 2x + 1
And that's in slope-intercept form, i.e, y = mx + b
Hope that helps !!!