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