A train travels 40 km at a uniform speed of 30km/hr. Its average speed after travelling another 40 km is 45km/hr for the whole journey. Find its speed in the second half of the journey.