What is the next term in the sequence 2,6,18,…2, 6, 18, \dots2,6,18,… defined by an=3an−1a_n = 3a_{n-1}an=3an−1?
24
36
54
72