Let the speed of express train be
x km/hLet the speed of passenger train be y km/h
x=y+10..........(i)
Time is defined as the ratio of distance to speed.
Time of express train is less than passenger train by 2 h
400x+2=400y...........(ii)
Substituting value of x from (i) in (ii), we get:
400y+10+2=400y
Rearranging terms, we get:
y2+10y−2000=0
⇒y2+50y−40y−2000=0
⇒(y+50)(y−40)=0
⇒y=−50ory=40
Speed cannot be negative, therefore
y=40
From equation (i),
x=y+10=50
Hence,
average speed of express train is 50 km/h
average speed of passenger train is 40 km/h