We know, point on a line segment which cut a line into the ratio m : n is given by :
[tex][(\dfrac{mx_1+nx_2}{m+n}),(\dfrac{my_1+ny_2}{m+n}) ][/tex]
Putting value of point A and B and m =2 and n = 5 .
We get :
[tex][(\dfrac{2(2)+5(18)}{2+5}),(\dfrac{2(6)+5(12)}{2+5}) ]\\\\(\dfrac{94}{7},\dfrac{72}{7})[/tex]
Hence, this is the required solution.