Principle. The Subtraction Rule [00G9]

If choosing something means making one choice in c_1 ways OR another in c_2 ways, but the choices overlap, the total number of choices is c_1 + c_2 - (\text {the number of choices in common}).

Another way to write this, which we have seen before, is |A \cup B| = |A| + |B| - |A \cap B|.