Let the points be A(x1, y1) = (– 1, 1) and B(x2, y2) = (5, 7) and P(x3, y3) be the point which divides AB in the ratio m: n.
∴ Co-ordinates of P are \(\big(\frac{mx_2 + nx_1}{m + n}, \frac{my_2 + ny_1}{m + n}\big)\)
= \(\big(\frac{5m - n}{m + n}, \frac{7m + n}{m + n}\big)\)
Since the point P lies on line x + y = 4.
∴ \(\frac{5m - n}{m + n}, \frac{7m + n}{m + n}\) = 4
⇒ \(\frac{12m}{m+n}\) = 4
⇒ 8m = 4n
⇒ m: n = 1: 2.