The correct answer is A. talked.
The sentence is in the simple past tense, so the verb must be in the past tense as well. Of the four options, only talked is in the past tense.
B. talking is in the present participle, which is used to form the present progressive tense and the present perfect tense.
C. talks is in the third person singular present tense, which is used to talk about someone or something that does something regularly or repeatedly.
D. talk is the infinitive form of the verb, which is used to talk about general actions or to make requests.