Hello, Kat, there may be no easy way to remember these except to use them a lot. Examples:
He answered me.
He said to me, "Give me one apple." I gave him an apple.
He asked me, "Did you give an apple to her?"
I responded to him, "Are you asking if I gave her an apple?"
"Yes, did you?" he asked.
I answered him, "Yes, I gave her an apple."