Joe drives 120 km at 60 kmph, and then he drives the next 120 km at 40 kmph. What is his average speed for the entire trip in kmph?