So, for this problem you have to divide a segment of line at a given rate,
In this case, the segment is AC and B is the point that the segment is divided,
the formula is: x=x1 +r x2/ (1+r) and y=y1+ry2/(1+r) r=2/5 and for this case if you substitute the data provided you get
n=-3 and q=38/7