Detailed Instructions: The task is to generate the correct answer for a given math problem.
Problem:Problem: a runner runs the 40 miles from marathon to athens at a constant speed . halfway through the run she injures her foot , and continues to run at half her previous speed . if the second half takes her 8 hours longer than the first half , how many hours did it take the runner to run the second half ?
Solution:
16