SOLUTION : If elements are not repeated, then number of elements in $A_1 \cup A_2 \cup \ldots \cup A_n$ is $30 \times 5$. But each element is used 10 times so, $S=\frac{30 \times 5}{10}=15$.
Similarly, if elements in $B_1, B_2, \ldots, B_n$ are not repeated, then total number of elements is $3 n$ but each element is repeated 9 times so,
$S=\frac{3 n}{9}=15$
$\Rightarrow \quad n=45$
So, The correct option of this question will be (c).