Sumalee left the mall and traveled toward the capital at an average speed of 40 km/h. Cody left one hour later and traveled in the opposite direction with an average speed of 70 km/h. How long does Cody need to travel before they are 150 km apart?