The insect and the train will repeat the same process after the insect reaches its initial point.
Consider the distance between the insect and the train when the insect starts flying from P be d.
Distance between point where both meet and
Then both will move in the same direction.
Time taken by the insect to reach P again=
(which is the required time interval)
Distance traveled by the train when the insect reaches
Distance between the train and the insect when the insect reaches P = 3d/5-2d/5 = d/5
The same process will be repeated again with distance
and so on.
Then time intervals will be d
1/75,d
2/75,d
3/75 and so on.
Sum of the time intervals = (d/75)(1+1/5+1/25+1/125.........)
Now the initial distance,d =240 km
Sum of the time intervals =
B is the answer.
Alternate Solution:
Total time taken by the train to reach Q=240/30=8 hours
The insect will move towards the train meet at some place and return back. Since the speed of insect is constant, no matter what time the train takes, the time taken by insect towards the train and and away from the train will remain same each time because the insect travels same distance both towards the train and away from the train.
Total time taken in the direction of the train=Total time taken against the direction of the train=8/2=4 hours