Solution

ID: past-exam-of-the-mathematics-course-of-the-year-1-of-the-natural-sciences-course-of-the-university-of-cambridge/2023/paper-2/14/a/vi/solution

Requiring exactly one condition means taking the symmetric difference of the two sets. Subtract their shared cases twice from the two individual counts:
Equivalently, remove the twenty-four arrangements satisfying both conditions from the inclusive count .

New to topics? Read the docs here!