As of 2026, Nepal has only one passenger railway. It runs from Jaynagar in India across the border to Kurtha, near Janakpur, and on to Bijalpura, and its trains cross 15 large bridges on the way. Picture standing on a river bank beside one, watching a train come.
Here is a puzzle about such a train (our numbers, not the real train’s). A train 100 m long is crossing a bridge 200 m long, at a steady 36 km/h. You start a stopwatch the moment the front of the engine reaches the bridge. When do you stop it? Not when the front reaches the far end: the train has crossed only when its last coach has left the bridge too.
Guess first. How long does the train take to cross the bridge?
Pick an answer to see why.
Try it
The front and the back
Use the widget, with the 100 m train unless it says otherwise.
- a.How long does the train take to pass the pole? What did the front travel?
- b.How long does it take to pass the 50 m platform?
- c.Make the train 200 m long, as long as the bridge. How long does it take to cross it now? Where is the train at 20 s?
| The 100 m train passes… | The front travels | At 10 m/s it takes |
|---|---|---|
| a pole | 0 + 100 = 100 m | 10 s |
| a 50 m platform | 50 + 100 = 150 m | 15 s |
| the 200 m bridge | 200 + 100 = 300 m | 30 s |
| a 1 km bridge | 1,000 + 100 = 1,100 m | 110 s |
From km/h to m/s
Speeds are given in kilometers an hour, but bridges are measured in meters and stopwatches in seconds, so change the speed first. 36 km/h means 36 km, which is 36,000 m, in one hour, which is 3,600 s. In one second the train goes 36,000 ÷ 3,600 = 10 m. Every km/h is 1,000 m in 3,600 s, which is 1,000/3,600 = 5/18 of a meter a second. So to change km/h into m/s, multiply by 5 and divide by 18:
| km/h | 18 | 36 | 54 | 72 | 90 | 108 |
|---|---|---|---|---|---|---|
| m/s | 5 | 10 | 15 | 20 | 25 | 30 |
What’s going on
Follow one point
A train is not a dot, and that is the whole difficulty. The trick is to stop thinking about the whole train and follow one point on it. Choose the front. The crossing starts when the front reaches the bridge and ends when the back leaves it, and at that moment the front is one train’s length past the far end. So:
distance the front travels = length of the bridge + length of the train
and then, as for anything moving at a steady speed,
time = distance ÷ speed.
Follow the back instead and you get the same: it starts one train’s length before the bridge and ends at the far end. The whole train moves together, so one point is enough. A pole or a person standing still is a bridge of length zero: passing one, the train travels just its own length.
You can forget the length only when it is small beside the distance: a 10 m bus driving 30 km travels 30 km and 10 m, a difference no stopwatch would notice.
Working backwards
The same idea solves puzzles that give you times and ask for lengths.
Meeting and overtaking
Two buses are on the Araniko Highway, 6 km apart, the blue one at 40 km/h and the red one at 50 km/h. How soon do they meet? It depends on which way they are going.
The buses go towards each other at 40 and 50 km/h. By how much does the gap shrink every minute?
Pick an answer to see why.
Sit on one bus
A passenger on the blue bus sees something simpler. To her, her bus stands still and the road slides backwards at 40 km/h. The red bus comes towards her at 40 + 50 = 90 km/h: its own 50, and the road’s 40 as well.
The speed at which one thing moves as seen from another is its relative speed. For two things on one line:
- Coming towards each other (or going apart), the relative speed is the sum of their speeds.
- Going the same way, it is the difference.
Then time = gap ÷ relative speed. Towards each other, 6 km at 90 km/h takes 4 minutes. The same way, the red bus behind gains only 50 − 40 = 10 km an hour, so it needs 6/10 of an hour, 36 minutes: nine times as long. Set the red bus to 40 km/h too, and the gap never changes: the relative speed is 0.
Lengths and relative speed together
Now put the two ideas together: things with lengths, passing each other.
The bee that flies between two cyclists
A famous kind of puzzle, with our own numbers. Kushal and Pema start 30 km apart and cycle towards each other at 12 km/h and 18 km/h. A bee leaves Kushal’s handlebar and flies at 40 km/h to Pema, turns back to Kushal, then back to Pema, and so on, until the two meet. How far does the bee fly?
Round and round
At the school sports day, Pratik and Dolma run on a 400 m track, both starting from the line at the same moment. Pratik runs at 5 m/s and Dolma at 3 m/s. When does Pratik come up behind Dolma and pass her?
On a straight road the faster runner would pull away and never meet the slower one again; on a track they meet again and again. Pratik catches Dolma when he has run exactly one lap more than her: when he has gained 400 m. He gains 5 − 3 = 2 m every second, so that takes 400 ÷ 2 = 200 s. Check: in 200 s Pratik runs 1,000 m, 2½ laps, and Dolma 600 m, 1½ laps: the same place ✓. He passes her again every 200 s.
Running opposite ways, they meet each time they have run 400 m between them, at 5 + 3 = 8 m a second: every 400 ÷ 8 = 50 s. It is the same as the buses: the gap to close is a lap, and the relative speed is the difference or the sum.
In the widget, make Dolma faster, 4.5 m/s, the same way. What happens to the time between passes?
Pick an answer to see why.
The twist: a clock’s two hands
A clock’s hands are two runners on a round track, together at 12:00. The minute hand turns 6° a minute, the hour hand ½°. When are they next together? Not at 1:00: the hour hand has moved on to 1. The minute hand must gain a whole lap, 360°, on the hour hand, at 6 − ½ = 5½° a minute:
So they are next together at about 1:05 and 27 seconds, and every 65 5/11 minutes after that: in 12 hours (720 minutes) only 11 times, not 12. The tenth comes at about 10:54 and a half; there is none between 11 and 12 o’clock, until 12:00 itself.
With and against the current
Sangam has a small motorboat on the Narayani that goes at 10 km/h in still water, and the river flows at 2 km/h. (Our numbers: a river’s current changes with the season and from bank to middle.) Downstream the river carries the boat as it moves through the water, so past the bank it goes 10 + 2 = 12 km/h. Upstream the current takes 2 back: 10 − 2 = 8 km/h.
It is relative speed again: the boat moves through the water, and the water past the bank.
A round trip on the river is always slower than in still water: 6 km down and back takes 30 + 45 = 75 minutes against 72, because the boat spends longer going slowly than going fast. You will meet this again in the last section.
The bottle in the river
Sabina is taking her boat upstream on another river when her water bottle falls in at a bridge and floats away. She notices after 15 minutes, turns round, and goes back at the same speed through the water. She catches the bottle 1.5 km below the bridge. How fast is the river flowing?
Average speed: not the average of the speeds
Shreya cycles up a hill road at 12 km/h, then back down the same road at 36 km/h. What is her average speed for the whole ride?
Guess first.
Pick an answer to see why.
Average speed is the whole distance divided by the whole time. It is the average of the speeds only when the times are equal: an hour at 12 km/h and an hour at 36 km/h is 48 km in 2 hours, 24 km/h. Over equal distances the slower part takes longer, so the average is pulled towards the slower speed. For two equal distances d at speeds u and v, the whole trip is 2d and the time ; the d cancels (so the road’s length doesn’t matter), leaving
For 12 and 36: 2 × 12 × 36 ÷ 48 = 18. This kind of average has a name, the harmonic mean. Grade 10’s Algebraic Fraction unit works it out step by step, with a bus on a hill road.
Where this is used
Questions
★ A train 120 m long goes at 54 km/h. How long does it take to pass a man standing beside the track?
Pick an answer to see why.
A train 240 m long runs at 90 km/h through a tunnel 760 m long. How long is it from the moment its front goes in to the moment its back comes out?
Answer
A train 200 m long goes through a tunnel 400 m long at 20 m/s.
- i.For how long is some part of the train inside the tunnel?
- ii.For how long is the whole train inside it?
Hint
Answer
★★ A boat goes downstream at 15 km/h and upstream at 9 km/h. How fast is the current?
Pick an answer to see why.
On a double railway track, a train 150 m long at 50 km/h and a train 100 m long at 40 km/h pass each other. How long are they side by side, from fronts level to backs level,
- i.if they are going opposite ways?
- ii.if they are going the same way, the faster one overtaking?
Answer
Anjila and Rehan run on a 400 m track. Running opposite ways, they meet every 40 seconds. Running the same way, Anjila passes Rehan every 200 seconds. How fast does each run?
Hint
Answer
At exactly 3:00, when are a clock’s hands next on top of each other?
Hint
Answer
Yangchen drives the first half of a trip at 40 km/h. How fast must she drive the second half to average 48 km/h for the whole trip?
Hint
Answer
Where to go next
- How Long Will Two Workers Take Together? Rates of work added and taken away, like speeds.
- What Does an Average Hide? What each kind of average tells you, and leaves out.
- Why Do Flights to America Fly Near the North Pole? (Math, Going Further 9–12) The shortest way round a globe.
- Why Is Speeding So Dangerous? (Science, Going Further 6–8) Stopping distances and a car’s energy.
- Grade 8 Math, Unitary Method: speed and time for a fixed trip; Grade 10 Math, Algebraic Fraction: average speed with letters.
Where these facts come from
- Nepal’s passenger railway, Jaynagar to Kurtha (opened 2 April 2022, passenger trains from 3 April) and Kurtha to Bijalpura (16 July 2023), the only passenger railway in Nepal, and its 15 major bridges: Wikipedia, “Jaynagar–Bardibas railway”, read November 2026.
- Mahavira, the Ganita-sara-sangraha of about 850 and the emperor Amoghavarsha: Wikipedia, “Mahāvīra (mathematician)”, read November 2026. The travelers’ problems and the rule for overtaking (quoted) in Chapter VI, “Mixed problems”: M. Rangacharya’s English translation (Madras, 1912), pages 177–179 (the example of the messenger on page 179), the scan at jainqq.org, read November 2026; its text is OCR, so the verse numbers weren’t read reliably and aren’t given.
- Alcuin’s problem 26 of the dog and the hare (150 feet, 9 and 7 feet a leap), Alcuin’s death in 804, and “the first known European example” of an overtaking problem: Wikipedia, “Propositiones ad Acuendos Juvenes”, read November 2026, citing Hadley and Singmaster, The Mathematical Gazette 76 (1992), also for overtaking problems dating back to 150 BC. Retold in our words.
- The von Neumann story, the fly and the two bicycles, and the books that tell it (MacRae 1992; Borwein and Bailey 2003): MathWorld, “Two Trains Puzzle”, read November 2026. The bee puzzle’s numbers are our own.
- Ground speed as airspeed plus the wind, headwinds and tailwinds: Wikipedia, “Ground speed”; the 1952 Pan Am flight (18 to 11½ hours) and the late February 2024 ground speeds over 800 mph: Wikipedia, “Jet stream”; both read November 2026.
- Passing sight distance, the 12 mph speed difference and 19 ft vehicles assumed, gaps of 1 s between the cars, and 800 ft at a design speed of 50 mph: Texas Department of Transportation, Roadway Design Manual, 4.11.3 Passing Sight Distance, read November 2026.
- The 400 m track in the widget (straights of 84.39 m, the line of running in lane 1 at 36.80 m radius, 0.30 m outside the curb, lanes 1.22 m): IAAF Track and Field Facilities Manual (2008), marking plan for the 400 m standard track, a copy at atletiek.be, read November 2026.
- Every number in the topic (each crossing time, the conversions, the backwards example, the buses, the overtake, the bee’s trips summed, the runners, the clock’s hands, the boats, the bottle, the average speeds and every answer) was computed by a program of our own.
Found a mistake? Please tell us.
