Eric Nicholas K's answer to Skr's Secondary 3 E Maths Singapore question.
The question is a little misleading though. If a person is unsure in this case, he/she would would top up for 500 km (if indeed 500 km is the distance travelled but the person only tops up 250 km worth, then the person will be stuck halfway).