A cyclist rides for a total of 60 miles. On flat terrain, he cycles at a speed of 15 miles per hour. He spends 40% of his riding time on flat terrain. For the remaining time, he cycles on hilly terrain at half the speed he cycles on flat terrain. How much time does the cyclist spend cycling on hilly terrain? Let's think step by step and output the final answer within \boxed{}.
user