The correct response to the sentence is:
B. Add a comma after trek
The revised sentence should read: "The hiker was exhausted from the long trek, but he pushed on determined to reach the summit before nightfall." The comma is needed before the conjunction "but" to properly separate the two independent clauses.