Two Trains, Different Speeds: Solve This Classic Rate Problem

Distance, Rate & Time 9th-10th Grade
PROBLEM
Two trains each make a journey of 330km. One of these trains travels 5km/h faster than the other and takes 30 minutes less time. Find the speeds of the trains.

Skills This Problem Builds

  • Setting up time equations using the distance-rate-time relationship
  • Working with rational expressions where the variable appears in denominators
  • Converting time units consistently (minutes to hours) before solving
  • Solving quadratic equations that arise from clearing fractions
  • Interpreting solutions in context and rejecting physically impossible answers

Solution: The Time Difference Approach

This is a classic distance-rate-time problem where we're comparing two journeys. The key insight is that we know the distance is the same for both trains, but their speeds and travel times differ in a specific way.

Step 1 — Define the variables

Let v be the speed of the slower train in km/h. Then the faster train has speed v + 5 km/h, since it travels 5 km/h faster.

Step 2 — Express the travel times

Using the relationship time = distance ÷ speed:

Time for slower train = 330/v hours
Time for faster train = 330/(v + 5) hours

Step 3 — Convert the time difference to hours

The problem states the faster train takes 30 minutes less time. Since our speed is in km/h, we need time in hours: 30 minutes = 0.5 hours.

Step 4 — Set up the time difference equation

The difference between the travel times equals 0.5 hours:

330/v - 330/(v + 5) = 0.5

Step 5 — Clear the fractions

Multiply every term by v(v + 5) to eliminate the denominators:

330(v + 5) - 330v = 0.5v(v + 5)
330v + 1650 - 330v = 0.5v² + 2.5v
1650 = 0.5v² + 2.5v

Step 6 — Rearrange into standard quadratic form

Multiply by 2 to clear the decimal coefficients:

3300 = v² + 5v
v² + 5v - 3300 = 0

Step 7 — Solve using the quadratic formula

With a = 1, b = 5, and c = -3300:

v = (-5 ± √(25 + 13200))/2
v = (-5 ± √13225)/2
v = (-5 ± 115)/2

This gives us v = 55 or v = -60. Since speed must be positive, v = 55 km/h.

Step 8 — Find both speeds

Slower train: 55 km/h
Faster train: 55 + 5 = 60 km/h

Solution: Method 2 — The Distance Comparison Method

Here's an alternative approach that focuses on how much farther the faster train would travel in the same amount of time.

Step 1 — Set up using the slower train's time

Let t be the time (in hours) that the slower train takes to complete the 330 km journey. Then the faster train takes t - 0.5 hours.

Step 2 — Express speeds in terms of time

Speed of slower train = 330/t km/h
Speed of faster train = 330/(t - 0.5) km/h

Step 3 — Use the 5 km/h speed difference

The faster train is exactly 5 km/h faster:

330/(t - 0.5) - 330/t = 5

Step 4 — Solve for t

Multiply by t(t - 0.5):

330t - 330(t - 0.5) = 5t(t - 0.5)
330t - 330t + 165 = 5t² - 2.5t
165 = 5t² - 2.5t
5t² - 2.5t - 165 = 0

Dividing by 5: t² - 0.5t - 33 = 0

Using the quadratic formula: t = (0.5 ± √(0.25 + 132))/2 = (0.5 ± 11.5)/2

So t = 6 hours (taking the positive solution).

Step 5 — Calculate the speeds

Slower train: 330/6 = 55 km/h
Faster train: 330/5.5 = 60 km/h
The slower train travels at 55 km/h and the faster train travels at 60 km/h.

Verification

Let's confirm our answer by checking both the speed difference and the time difference:

Speed difference: 60 - 55 = 5 km/h ✓

Travel times:

Slower train: 330 ÷ 55 = 6 hours
Faster train: 330 ÷ 60 = 5.5 hours

Time difference: 6 - 5.5 = 0.5 hours = 30 minutes ✓

Both conditions are satisfied, so our solution is correct.

Watch Out For These

✗ Inconsistent time units

Setting up the equation as 330/v - 330/(v+5) = 30 using minutes instead of converting to hours first. This leads to a completely different quadratic equation with wrong answers. Always convert to matching units before writing equations.

✗ Accepting negative speed

Getting v = -60 from the quadratic formula and not realizing this represents an impossible physical situation. Speed cannot be negative in this context, so this solution must be rejected.

✗ Setting up the wrong equation

Writing 330/v + 330/(v+5) = 0.5 instead of subtracting the times. This would represent the sum of the travel times equaling 30 minutes, which makes no physical sense given the problem description.

The Math Beneath the Surface

This problem exemplifies a fundamental pattern in rate problems: when you have a fixed distance and two different rates, comparing their times leads to a rational equation that becomes quadratic when you clear denominators.

The general form for this type of problem is:

D/v₁ - D/v₂ = Δt

where D is the distance, v₁ and v₂ are the speeds, and Δt is the time difference.

If the speeds are related by v₂ = v₁ + k (where k is a constant difference), then substituting gives:

D/v₁ - D/(v₁ + k) = Δt

This will always produce a quadratic equation in v₁. One solution will typically be positive (the physical answer), while the other will be negative and must be discarded.

The key insight is recognizing that the "30 minutes less" translates to a subtraction of times, not speeds or distances. This temporal relationship is what creates the rational equation structure.

How to Spot This Problem Type

  • "travels X faster" or "X km/h faster" — indicates a speed relationship
  • "takes Y minutes/hours less" — signals a time difference comparison
  • "same distance" or "both travel Z km" — means you can use distance-rate-time for both journeys
  • "find the speeds" — confirms this is asking for the rates, not times or distances

The combination of equal distances, different speeds, and a time comparison is the signature of this problem type. You'll see similar setups with planes, cars, runners, or any moving objects where speed differences create time differences over the same route.

Real Applications

  • Transportation logistics: Companies need to calculate delivery times when vehicles have different speeds due to load capacity, fuel efficiency, or route conditions.
  • Race analysis: Understanding how pace differences translate to finish time gaps in marathons, cycling, or other endurance events.
  • Network performance: Comparing data transfer rates between different connection types over the same file size to predict download time differences.

Try These Variations

1
Longer Distance
Two trains each travel 480 km. One train is 8 km/h faster than the other and completes the journey 1 hour sooner. Find the speeds of both trains.
Step 1 — Set up variables

Let v = speed of slower train, then v + 8 = speed of faster train.

Step 2 — Write time expressions

Time for slower train: 480/v hours, Time for faster train: 480/(v + 8) hours

Step 3 — Set up time difference equation

480/v - 480/(v + 8) = 1

Step 4 — Clear fractions and solve

Multiply by v(v + 8): 480(v + 8) - 480v = v(v + 8)
3840 = v² + 8v
v² + 8v - 3840 = 0

Step 5 — Apply quadratic formula

v = (-8 ± √(64 + 15360))/2 = (-8 ± √15424)/2 = (-8 ± 124.2)/2
Taking the positive solution: v = 58.1 ≈ 58 km/h

Answer

Slower train: 58 km/h, Faster train: 66 km/h

2
Find the Distance
Two trains travel the same unknown distance. One travels 10 km/h faster than the other and takes 45 minutes less time. If the slower train takes exactly 5.5 hours for the journey, what is the distance traveled?
Step 1 — Find the slower train's speed

Let D = distance. Slower train takes 5.5 hours, so its speed is D/5.5 km/h.

Step 2 — Find the faster train's time and speed

Faster train takes 5.5 - 0.75 = 4.75 hours (45 min = 0.75 h)
Faster train's speed: D/4.75 km/h

Step 3 — Use the speed difference

Speed difference is 10 km/h: D/4.75 - D/5.5 = 10

Step 4 — Solve for D

D(1/4.75 - 1/5.5) = 10
D(5.5 - 4.75)/(4.75 × 5.5) = 10
D(0.75)/26.125 = 10
D = 10 × 26.125/0.75 = 348.33 km

Step 5 — Verify

Slower train: 348.33/5.5 = 63.3 km/h
Faster train: 348.33/4.75 = 73.3 km/h
Difference: 73.3 - 63.3 = 10 km/h ✓

Answer

Distance = 348 km

3
Three Train Scenario
Three trains A, B, and C each travel 300 km. Train B is 10 km/h faster than A, and train C is 10 km/h faster than B. Train A takes 1.5 hours longer than train C. Find the speed of train B.
Step 1 — Define speeds

Let v = speed of train A. Then:
Speed of B = v + 10
Speed of C = v + 20

Step 2 — Write time expressions

Time for A: 300/v
Time for C: 300/(v + 20)

Step 3 — Set up time difference equation

A takes 1.5 hours longer than C:
300/v - 300/(v + 20) = 1.5

Step 4 — Clear fractions

Multiply by v(v + 20):
300(v + 20) - 300v = 1.5v(v + 20)
6000 = 1.5v² + 30v
v² + 20v - 4000 = 0

Step 5 — Solve quadratic

v = (-20 ± √(400 + 16000))/2 = (-20 ± √16400)/2
v = (-20 ± 128.06)/2
Taking positive: v = 54.03 ≈ 54 km/h

Answer

Train B's speed = 54 + 10 = 64 km/h

4
Meeting Time Challenge
Two trains start at the same point on a circular track and travel in the same direction. Using the speeds from our original problem (55 km/h and 60 km/h), how long will it take for the faster train to lap the slower train if the track is 330 km long?
Step 1 — Understand the relative motion

The faster train gains on the slower train at a rate of 60 - 55 = 5 km/h.

Step 2 — Set up the lapping condition

For the faster train to lap the slower one, it must gain exactly one full lap (330 km) on the slower train.

Step 3 — Calculate time using relative speed

Time = Distance gained ÷ Relative speed
Time = 330 km ÷ 5 km/h = 66 hours

Step 4 — Verify with position equations

After 66 hours:
Slower train position: 55 × 66 = 3630 km = 11 complete laps
Faster train position: 60 × 66 = 3960 km = 12 complete laps
Difference: exactly 1 lap ✓

Answer

The faster train will lap the slower train after 66 hours

Frequently Asked Questions

How do you set up equations for trains traveling at different speeds? +
Use the relationship time = distance ÷ speed for each train, then express the time difference as an equation. In this problem, if the slower train has speed v, the faster has speed v + 5, giving times 330/v and 330/(v + 5). The time difference equation becomes 330/v - 330/(v + 5) = 0.5 hours.
Why do distance-rate-time problems often lead to quadratic equations? +
When you have a fixed distance and compare two different rates, the algebra involves fractions with the unknown in the denominator. Clearing these denominators by cross-multiplication typically produces a quadratic equation. Here, solving 330/v - 330/(v + 5) = 0.5 leads to the quadratic v² + 5v - 3300 = 0.
How do you convert time differences between hours and minutes in rate problems? +
Convert everything to the same unit before setting up equations. Since 30 minutes = 0.5 hours, use 0.5 in your time difference equation rather than mixing units. This prevents errors and keeps the algebra cleaner throughout the solution.
NJ
Neven Jurkovic, PhD

Professor of Computer Science, Palo Alto College, Alamo Colleges District, San Antonio, TX

Developer of Algebrator

Contact

This solution was prepared with AI assistance and reviewed by Dr. Jurkovic for mathematical accuracy and pedagogical clarity.

2026-05-24