Reverse the program you made so that the robot goes 10 cm, then 30, and then 50.