Answer:
7 hours
Step-by-step explanation:
Speed of train in first 4 hours = 160 km/h
Speed of train after 4 hours = 180 km/h
Distance = Speed × Time

Distance traveled in first 4 hours = 640 km
Distance remaining = 1180-640 = 540 km
Time = Distance / Speed

Total time taken by the train is 4+3 = 7 hours