Let X = {n \( \in \) N : 1 \( \le \) n \( \le \) 50}. If A = {n \( \in \) X: n is a multiple of 2} and B = {n \( \in \) X: n is a multiple of 7}, then the number of elements in the smallest subset of X containing both A and B is ________.
Show Hint
The smallest subset of X containing both A and B is their union; use inclusion-exclusion.
Step 1: The required set is \(A\cup B\); count its complement in X: numbers that are neither multiples of 2 nor of 7. Step 2: Odd numbers up to 50: 25. Among them, odd multiples of 7: 7, 21, 35, 49 (4 numbers). So 25 - 4 = 21 numbers are in neither set. Step 3: \(n(A\cup B)=50-21=29\). Answer: 29