A straight line passes through the points A(2,−4) and B(5,−2).Find the value of k, if AB passes through the point P(k+3,k−4).