Ok, so there are two rest stops at the start and end of the trail. This means that the sum of the distances of the rest stops must equal 20 kilometers.
If you can imagine a number line being split by 3 lines, it makes four segments.
We can't solve this using because that would mean one of the three rest stops is at the end of the hike