A relative pronoun is one that relates to a preceding noun or pronoun called the antecedent, and connects the clause which it introduces to the antecedent. The noun is "Andrew" and it precedes the relative pronoun "who" introducing the clause, "who had listened to the whole story". Hence, Option A is correct. The rest of the options do not adhere to this rule, hence incorrect.