#### Answer

$r=3$
$a_5=162$
The $n^{th}$ term of the geometric sequence is: $a_n=2 \cdot 3^{n-1}$

#### Work Step by Step

RECALL:
(1) The common ratio of a geometric sequence is equal to the quotient of any two consecutive terms:
$r =\dfrac{a_n}{a_{n-1}}$
(2) The $n^{th}$ term of a geometric sequence is given by the formula:
$a_n = a\cdot r^{n-1}$
where
$a$ = first term
$r$ = common ratio
The sequence is said to be geometric.
Thus, we can proceed to solving for the common ratio:
$r=\dfrac{6}{2} =3$
The fifth terms can be found by multiplying the common ratio to the fourth term.
The fourth term is 54.
Thus, the fifth term is:
$a_5=54(3)
\\a_5=162$
With a first term of $2$ and a common ratio of $r=3$, the $n^{th}$ term of the geometric sequence is:
$a_n=a \cdot r^{n-1}
\\a_n=2 \cdot 3^{n-1}$