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