Find the point (x, y) that divides line segment joining the points A(3,6) and B(7,10) in the ratio 3:1.