Let T1 is the time taken by the car to cover 30 km.
Since, Time = Distance/ Speed
So, T1 = 30 km/60km/hr = 0.5 hr
Let T2 is the time taken by the car to cover next 30 km.
So, T2 = 30/40= 0.75 hr
Total time taken by the car, T = T1 + T2 =(0.5 + 0.75)hr = 1.25 hr