Which of the following expressions gives the x-coordinate of a point P(x,y) that divides the line segment joining A(x1,y1) and B(x2,y2) internally in the ratio m:n (i.e., AP:PB=m:n)?
(a) m+nmx1+nx2
(b) m−nmx2+nx1
(c) m+nmx2+nx1
(d) m+nmx2−nx1