what is the formal for slope
slope = m = [ y2 - y1 ] / [ x2 - x1 ]
where the points are [ x1, y1] , [x2, y2]