def reduite(A,B):
    m = ( B[1] - A[1] ) / ( B[0] - A[0] )
    p = A[1] - m*A[0]

    return m, p
