let here North direction is along +Y and South direction is along -Y
similarly East direction is towards +X and west direction is towards -X
now it is given that
first it moves 235 km north

then it moves back 126 km south

then again he moves north

now the total displacement is given as


so final displacement of train is 154 km North