Use point-slope formula, first find the slope of AB, m(AB) = (3-5)/(3+1) = -1/2.