which start at the same time and place. We can transfer fuel from one train to another such that limit does not exceed given Y (for all trains), find the maximum distance covered by any of the trains.