Initially the man is at the position :10
forward position of the man is :15
next position of the man is :13
i have assumed an object as a man.
the forward position as x and the backward position as y.
then getting those moves.
and then calculating those moves.
finally printing the initial movement,forward position and backward(next)position of the man.