How does the sentence end?

William went to school after hours to ask Eric for help him familiarize himself with the required texts, 
Options are:
 (a). William knew the test was imminent.;
 (b). Eric knew the test was imminent.;
(a).