A committee of $5$ members is to be chosen seven men and five women. Find the number of ways this committee can be formed if the man Aaron or the woman Beatrice or both of them must be in the committee.
My solution
$${12\choose 5} - {7\choose5} - {5\choose5} = 770$$
My answers is incorrect, it should be $540$. I realised that I only subtracted the numbers of ways for no men and no women from the total number of ways. How can I get the answer from the total numbers of ways?
Let's use complement rule: all selections without restriction minus neither Aaron nor Beatrice in the committee at the same time. When we subtract them, we have $10$ people to select $5$ people among them.
Then $$\binom{12}{5} - \binom{10}{5} = 540.$$