Find the ratio in which the point P(1, 2) divides the line joining the points A(-2, 1) and B(7, 4).
Determine the ratio in which the line 2x+y=4 divides the line segment joining the points A(2,-2) and B(3,7)