The binomial expansion of \( (1 + x)^{2n-1} \) is given by the general term:
\[
T_{r+1} = \binom{2n-1}{r} x^r
\]
For the 30\(^\text{th}\) term, we use:
\[
T_{30} = \binom{2n-1}{29} = A
\]
For the 12\(^\text{th}\) term, we use:
\[
T_{12} = \binom{2n-1}{11} = B
\]
We are given that:
\[
2A = 5B
\]
Substituting the expressions for \( A \) and \( B \):
\[
2 \binom{2n-1}{29} = 5 \binom{2n-1}{11}
\]
By solving this equation, we find that \( n = 21 \).