Let the speed of the train be x km/hr and the speed of the car be y km/hr.
Case I: When he travels 120 km by train and the rest by car.
If Ved travels 120km by train, then
Distance covered by car is (600−120)km=480km.
Now, Time taken to cover 120km by train =120x hrs. [∵Time=DistanceSpeed]
Time taken to cover 480 km by car =480yhrs
It is given that the total time of the journey is 8 hours.
∴120x+480y=8
⇒8(15x+60y)=8
⇒15x+60y=1
⇒15x+60y−1=0 ..(i)
Case II When he travels 200 km by train and the rest by car
If Ved travels 200km by train, then
Distance travelled by car is (600−200)km=400km
Now, Time taken to cover 200km by train =200xhrs
Time taken to cover 400 km by train =400yhrs
In this case the total time of journey is 8 hour 20 minutes.
∴200x+400y=8hrs 20 minutes
⇒200x+400y=813 [∵8hrs20minutes=82060hrs=813hrs]
⇒200x+400y=253
⇒25(8x+16y)=253
⇒8x+16y=13
⇒24x+48y=1
⇒24x+48y−1=0 .(ii)
Putting 1x=u and 1y=v in equations (i) and (ii), we get
15u+60v−1=0 (iii)
24u+48v−1=0 ..(iv)
By using cross-multiplication, we have
u60×−1−48×−1=−v15×−1−24×−1=115×48−24×60
⇒u−60+48=−v−15+24=1720−1440
⇒u−12=v−9=1−720
⇒u=−12−720=160 and v=−9−720=180
Now, u=1x⇒160=1x⇒x=60
and, v=1y⇒180=1y⇒y=80
Hence, the speed of a train is 60 km/hr and the speed of a car is 80 km/hr.