In a marathon, there are 10 runners. The first 6 runners finished the race in 4 hours each, while the remaining 4 runners finished the race 1 hour later. Calculate the total time all the runners took to finish the race. Let's think step by step and output the final answer within \boxed{}.
user