Answer
$531440$
Work Step by Step
Formula to calculate the sum of the first $n$ terms of a geometric sequence is: $s_n=\dfrac{a(1-r^n)}{(1-r)}$
Here, $r=\dfrac{a_2}{a_1}=3$
As we are given that, $n=12$
Thus, $s_{12}=\dfrac{2(1-3^{12})}{(1-3)}$
or, $s_{12}=531440$