Using the section formula, if a point (x,y) divides the line joining the points (x1,y1) and (x2,y2) in the ratio m:n, then
(x,y)=(mx2+nx1m+n,my2+ny1m+n)
Calculate the ratio in which the line joining points A(-1,2) and B(5,7) is divided by the line x=2.