$$A_0,A_1,.............,A_{30}\implies$$ each of 5 elements
$$B_1,B_2,B_3...........n\implies$$ each of 3 elements
The number of elements in the union of the A sets is $$5(30)-r$$ where 'r' is the number repeats likewise the number of elements in the B sets $$3n-rB$$
Each element in the union (in5) is repeated 10 times in A which means if x was the real number of elements in A (not counting repeats) then q out of those 10 should be thrown away or 9x .likewise on the B side 8x of those elements should be thrown away So, $$\implies 150-9x=3n-8x$$
$$n=50-3x$$
Now in figure out what x is we need to use the fact that the union of a group of sets contains every member of each sets . If every element in 'S' is repeated 10 times that means every element in the union of the n's is repeated 10 times .
This means that $$10/10\implies 15$$ is the number of in the A's without repeats counted (same for the B's aswell ) So now
$$\cfrac{50-15}{3}=n$$
$$n=45$$
Subset:- A proper subset is nothing but it contain atleast one more element of main set .
Ex:$$\{3,4,5\}$$ is a set then the possible subsets are
$$\{3\},\{4\},\{5\},\{1,5\},\{3,4\}$$