Let the speed of the train be x km/hr and that of the car be y km/hr. We have following cases:
Case I When he travels 250 km by train and the rest by car.
In this case, we have
Time taken by the man to travel 250 km by train =250xhrs
Time taken by the man to travel (370−250)=120km by car =120yhrs
∴ Total time taken by the man to cover 370km =250x+120y
It is given that the total time taken is 4 hours
∴250x+120y=4
⇒125x+60y=2 (i)
Case II When he travels 130 km by train and the rest by car:
In this case, we have
Time taken by the man to travel 130km by train =130x hrs
Time taken by the man to travel (370−130)=240km by car =240yhrs.
In this case, total time of the journey is 4 hrs 18 minutes.
∴130x+240y=4hrs 18 minutes
⇒130x+240y=41860
⇒130x+240y=4310 .(ii)
Thus, we obtain the following system of equations:
125x+60y=2
130x+240y=4310
Putting 1x=u and 1y=v, the given system reduces to
125u+60v=2 (iii)
130u+240v=4310 (iv)
Multiplying equation (iii) by 4 the given system of equations becomes
500u+240v=8 ..(v)
130u+240v=4310 ..(vi)
Subtracting equation (vi) from equation (v), we get
370u=8−4310⇒370u=3710⇒u=1100
Putting u=1100 in equation (v), we get
5+240v=8⇒240v=3⇒v=180
Now, u=1100 and v=180
⇒1x=1100 and 1y=180
⇒x=100 and y=80
Hence, Speed of the train =100 km/hr
Speed of the car =80 km/hr.