The correct answer is: D. had reached/were walking

The sentence is in the past perfect tense, which is used to talk about an action that happened before another action in the past. In this case, the first action is the scouts reaching the top of the hill, and the second action is the scouts walking for more than an hour. The past perfect tense is formed with the past participle of the verb (reached) and the auxiliary verb had.

The other options are incorrect because they do not use the past perfect tense. Option A, reach/have been walking, is in the present perfect progressive tense. This tense is used to talk about an action that started in the past and continues in the present. Option B, will reach/will have been walking, is in the future perfect progressive tense. This tense is used to talk about an action that will start in the future and continue until a specific time in the future. Option C, will have reached/are walking, is in the future perfect tense. This tense is used to talk about an action that will happen before a specific time in the future. Option E, have reached/will be walking, is in the future perfect progressive tense. This tense is used to talk about an action that will start in the future and continue until a specific time in the future.

In conclusion, the correct answer is: D. had reached/were walking