This one makes me scratch my head often too...
So I typically refresh my memory with these videos:
"English Grammar Basics: Affect vs Effect" by Socratica
"Affect and effect | Frequently confused words | Usage | Grammar" by Khan Academy
"EFFECT or AFFECT? 🤔 English Mistakes that Native Speakers Make too!!" by mmmEnglish
Usually, it's also helpful to look up ESL (English as a Second Language). The videos typically explain things in an easier way.