Solution:The speed of the First car be 20 km/h and the speed of the second car be 30km/h Let 't' be the time taken by the second car to complete the
journey.
Then time taken by the first car to complete the journey = (1.5 + t + 25) hrs.
Now, equating the total distance in both case, we get :-
30 × t = 20 × (1.5 + t + 2.5) hrs
30t = 80 + 20t ⇒ t = 8 hr
30t = 80 + 20t ⇒ t = 8hr
Now, total distance = 30 × t = 30 × 8
= 240km.