We are in agreement about the forward and backward distances,
but this could be a sort of "trick question" to emphasise
the difference between scalar and vector quantities.
Strictly speaking, if what was meant was how far is it from where it started
the word displacement should be used.
In this example that would be 20 - 2 = 18m
Since the question said "..how far did the train move? " it is asking about distance
which is how far an object has moved regardless of direction . (This is what we
would want to know about if we are calculating the rate of fuel usage)
In this case I reckon the answer should be 20 + 2 = 22m.
Regards - Ian