In this question we have to use the section formula, which is

Where m:n is the ratio in which the line is divided by the point P and (x1,y1) and (x2,y2) are the coordinates of the end points .
Here the ratio is

Substituting the values , we will get

So the x coordinate is x=27