It is given that each set X contains 5 elements and .
But, it is given that each element of S belong to exactly 10 of the Xr's.
∴ Number of distinct elements in S = .....(1)
It is also given that each set Y contains 2 elements and .
Also, each element of S belong to eactly 4 of Yr's.
∴ Number of distinct elements in S = .....(2)
From (1) and (2), we have
Hence, the value of n is 20.