You can remember the meaning of 巧合 with this easy mnemonic:
My ex was opportunely (巧) standing outside my shop just as I was about to close (合) up. What a coincidence!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.