If a cyclist travels a distance of 120 miles at a constant speed, it takes them 6 hours. How long would it take if they traveled the same distance at a speed of 40 miles per hour? Let's think step by step and output the final answer within \boxed{}.
user