Scenario: A car travels 150 km in three segments with different speeds, and we want to determine how far it is from point B at a specific time.
\[ \text{Time} = \frac{50}{100} = \frac{1}{2} \text{ hr} \]
\[ \text{Time} = \frac{50}{50} = 1 \text{ hr} \]
\[ \text{Time} = \frac{50}{25} = 2 \text{ hr} \]
Total time taken by Car 1 for full 150 km:
\[ \frac{1}{2} + 1 + 2 = 3.5 \text{ hours} = 3 \text{ hr } 30 \text{ min} \]
At 100 km/hr, time to cover 20 km:
\[ \frac{20}{100} = 0.2 \text{ hr } = 12 \text{ min} \]
So, after car 2 starts, time left for car 1 to reach B:
\[ 3 \text{ hr } 30 \text{ min } - 12 \text{ min } = 3 \text{ hr } 18 \text{ min } = 3.3 \text{ hr} \]
Breakdown of total distance traveled by car 1:
Remaining time for last segment:
\[ 3.3 - 1.5 = 1.8 \text{ hr } \quad \text{(1 hr from second segment + 0.5 hr from first)} \]
Time spent in third segment = 1.8 hr
Distance covered in 1.8 hr at 25 km/hr:
\[ 25 \times 1.8 = 45 \text{ km} \]
\[ 50 + 50 + 45 = 145 \text{ km} \]
\[ 150 - 145 = \boxed{5 \text{ km}} \]
\[ \boxed{5 \text{ km from B}} \]