Given the pair of Co-ordinates arrange them in this format
E.g A(X1, Y1), B(X2, Y2)
M = Y2 - Y1 X2 - X1