You can remember the meaning of 外遇 with this easy mnemonic:
I think my husband is having an extramarital affair. He's always outside (外) talking on the phone or meeting (遇) with "business partners" until midnight.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.