Since it’s a first-order recurrence, you can try the very elementary technique of ‘unwinding’ it:
$$\begin{align*}
a_n&=5a_{n-1}+12\\
&=5(5a_{n-2}+12)+12\\
&=5^2a_{n-2}+5\cdot12+12\\
&=5^2(5a_{n-3}+12)+5\cdot12+12\\
&=5^3a_{n-3}+5^2\cdot12+5\cdot12+12\\
&\;\vdots\\
&=5^ka_{n-k}+12(5^{k-1}+5^{k-2}+\ldots+5+1)\tag{1}\\
&\;\vdots\\
&=5^{n-1}a_{n-(n-1)}+12\sum_{k=0}^{n-2}5^k\\
&=5^{n-1}a_1+12\sum_{k=0}^{n-2}5^k\\
&=3\cdot5^{n-1}+12\sum_{k=0}^{n-2}5^k\;.
\end{align*}$$
You should know how to express that last summation in closed form, and when you’ve done that, you’ll have a closed form for $a_n$. Of course we guessed at a pattern in line $(1)$, so the closed form that you get should be considered a conjecture, but once you have it, it’s easy enough to prove by induction that it’s correct.
This answer illustrates another, somewhat neater technique for solving exactly this kind of recurrence.