In the context of the given sentence, past perfect form of the tense should be used as this tense is used to talk about actions that were completed before some point in the past. Hence, ‘went out’ mustbe replaced with ‘had gone out’.Thus, option (b) is correct.