If A ( x 1, y 1) and B( x 2, y 2,), then distance d, from A to B = midpoint, M, of AB = slope, m, of Following is a list of the equations of lines: