Let \(A_{1},A_{2},\dots,A_{6}\) be six sets, each with four elements and \(B_{1},B_{2},\dots,B_{n}\) be \(n\) sets, each with two elements. Let
\[
S=A_{1}\cup A_{2}\cup\dots\cup A_{6}=B_{1}\cup B_{2}\cup\dots\cup B_{n}.
\]
Given that each element of \(S\) belongs to exactly four of the \(A\)'s and to exactly three of the \(B\)'s, then \(n\) is: