a robot is programmed to move forward 'F' meters and backwards again say 'B' meters in a straight line .the robt covers 1 meter in T units of time on robot path there is a ditch at a distance FD from intial oposition in forward direction as well as a ditch at a distance 'BD' from intial postion in backward direction this forward and backward movements is performed repeatedly by the robot
your task is to calculate amount of time taken before the robot falls either ditch if at all it falls in a ditch