In an amusement park, a visitor gets to ride on three different rides (A, B and C) for free. On a particular day 77 opted for ride A, 55 opted for B and 50 opted for C; 25 visitors opted for both A and C, 22 opted for both A and B, while no visitor opted for both B and C. 40 visitors did not opt for ride A or B (i.e., they were outside $A \cup B$). How many visited the amusement park on that day?
Show Hint
When a question tells you how many are {outside} \(A \cup B\), jump straight to \(N = |A \cup B| + \text{(outside)}\). Compute \(|A \cup B|\) via inclusion–exclusion and add the given outside count.