From 09:00 pm to 10:00 pm, a person drove at a speed of 40 km/h, then he took a halt for an hour. He resumed his journey at 11:00 pm and drove till 12:00 am midnight at a speed of 50 km/h. What is his average speed in the time interval between 09:00 pm and 12:00 am?