A cyclist can maintain a speed of 20 kilometers per hour on flat terrain and 10 kilometers per hour when climbing hills. If a racecourse is 60 kilometers long with 40 kilometers of flat terrain and 20 kilometers of hilly terrain, how long will it take the cyclist to complete the race? Provide your answer in hours and minutes. Let's think step by step and output the final answer within \boxed{}.
user