Total distance = 380 miles
Let the time & distance of 1st day be = t1 & d1 respectively
Distance = Speed x Time
For second day : d2 = s2 x t2 ; d2 = 60 x t2
For first day : d1 = s1 x t1 ; d1 = 40 x t1
Given : d1 = d2 + 20 & t1 = t2 + 2 , putting these values in d1
d2 + 20 = 40 (t2 + 2)
Putting value of d2 ,
60 t2 + 20 = 40 t2 + 80
60 t2 - 40 t2 = 80 - 20
20t2 = 60
t2 = 60 / 20 ; t2 = 3
So, t1 = 3+2 = 5
Hence : d1 = 40 x 5 = 200 ; d2 = 60 x 3 = 180
Therefore , Total Distance = 200 + 180 = 380