Equation of a Line
y = mx + b
m = Slope or Gradient (how steep the line is)
b = the Y Intercept (where the line crosses the Y axis)
Find equation of a line that pass through two points
If a line pass through (x1,y1) (x2,y2) then,m = (y1-y2)/(x1-x2) , b = y1 - m·x1
and the line equation is
y = mx + b
Find equation of a line by slope m and a point
If a line pass through (x1,y1) and has a slope m then,b = y1 - m·x1
and the line equation is
y = mx + b