Final answer:
Janelle should plan to spend 15 hours walking back.
Step-by-step explanation:
To calculate how long Janelle should plan to spend walking back, we first need to find out the distance she runs. Since she runs at a speed of 9 mph for the whole distance of the race, we can use the formula speed = distance / time to find the distance. Rearranging the formula to solve for distance, we have distance = speed * time. Plugging in the values, we have distance = 9 mph * 5 hours = 45 miles.
Since Janelle walks back the same distance, she will also be walking 45 miles. To find the time it takes for her to walk back, we use the formula time = distance / speed. Plugging in the values, we have time = 45 miles / 3 mph = 15 hours.
Therefore, Janelle should plan to spend 15 hours walking back.