Well to solve for r, what you would need to do is make up an equation based on the expressions that represent the segments of the line in the image.
JK represents the first aspect of the line and is equal to 6r.
Likewise, KL represents the second component of the line and is equal to 3r.
We also know the total value from the first point to the last one, and that is 27.
Now simply add the first 2 expressions that represent the segments of the line and make it equal to the total length of the line, 27 and then solve for r.
6r + 3r = 27
9r = 27
r = 27/9
r = 3.
So now we know that JK is 6 • 3 = 18 and KL is 3 • 3 = 9, thus adding both together will give a value of 27, 18 + 9 = 27.
The solution is C.3