Let the points A(2, 1) and B(5, –8) is trisected at the points P(x, y) and Q(a, b).
Thus, AP = PQ = QB
Therefore, P divides AB internally in the ratio 1 : 2.
Section formula: if the point (x, y) divides the line segment joining the points (x1, y1) and (x2, y2) internally in the ratio m : n, then the coordinates (x, y) =
Therefore, using section formula, the coordinates of P are:
Hence, the coordinates of P are (3, –2).
Since, P also lies on the line given by 2x – y + k = 0,
Therefore, (3, –2) satisfies the equation 2x – y + k = 0
Hence, the values of k is –8.