let the usual speed of train be x km/hr,
Then the increased speed of the train is = (x + 5) km/hr
Time taken by the train under usual speed to cover 360km = hr
Time taken by the train under increased speed to cover 360 km =hr
Therefore,
Since the speed of the train can never be negative
Hence, the original speed of the train is 40 km/hr.