An airplane travels at a speed of 400 km/hr for 2 hours, slows to 300 km/hr for the next hour and then travels the final 2 hours at a speed of 350 km/hr. What is the average speed of the plane for this trip?