Here X={1,6,11, …, 10086} and Y={9,16,23, …, 14128}The intersection of X and Y is an A.P. with 16 as first term and 35 as common difference. The series becomes 16,51,86, …. Now, k th term =16+(k−1) 35 ≤ 10086i.e. k ≤ 3510105 ∴ k ≤ 288 (as k is to be an integer) Hence, n(X ∪ Y)=n(X)+n(Y)−n(X ∩ Y)=2018+2018-288=3748$