f1, f2: Minimum cumulative times to reach current station on Line 1 and Line 2
e1=2, e2=4: Entry times (initial setup costs) for Line 1 and Line 2
x1=3, x2=2: Exit times (final completion costs) from Line 1 and Line 2
a1[], a2[]: Processing times at each station on Line 1 and Line 2
t1[], t2[]: Transfer times from Line 1 to Line 2, and Line 2 to Line 1
Goal: Find minimum of (f1 + x1) and (f2 + x2) for optimal total time