I know that $2:3$ is actually $\frac {2}{3}$. So when you split a line segment by a ratio, you would add $2$ and $3$ to get a fraction of $\frac {2}{5}$ that will be used to solve the problem.
I can't really seem to find much information on these kind of problems, though. Therefore, I am confused if I am given a fraction instead, such as $\frac {2}{5}$ should I add the numerator and the denominator to get $\frac {2}{7}$?
Here's a problem to make this question more clear.

Please note that the answer is wrong since I discovered the actual solution.
If you are given a ratio for a line, then the line is split into segments, whose lengths are in the given ratio. For example, if you had the ratio $2:3$, you are right in thinking that the line can scale to $2$ segments, each of length $2$ and $3$. Obviously the total is $5$ so they each amount to $\frac{2}{5}$ and $\frac{3}{5}$ of the total length.
But if you are given a fraction, then that should represent how much of the $total$ length is taken up. For example, $\frac{2}{5}$ is a length of $2$ out of a total length of $5$ and $not$ a total of $7$.
In my experience, ratios aren't given as often as fractions and I much prefer fractions.
Also, jj172 is right in saying that $2:3$ is not $\frac{2}{3}$.