Kolya traveled on an electric scooter to a store in a neighboring village at a speed of 10 km/h. After covering exactly one-third of the total distance, he realized that if he continued at the same speed, he would arrive exactly at the store's closing time. He then doubled his speed. However, after traveling exactly two-thirds of the total distance, the scooter broke down, and Kolya walked the remaining distance. At what speed did he walk if he arrived exactly at the store's closing time?