The coordinates of the point which partitions a directed line segment AB at the ratio a:b from A(x1, y1) to B(x2, y2) is computed as follows:

In this case, the segment goes from R(-2, 4) to S(18, -6), and the partition ratio is 3:7. Substituting into the above formula, we get:
