$8(8^k) - 3(3^k)$ is the first step, and then it gets manipulated into.
$(8^k - 3^k)8 + 5(3^k)$ this manipulation is correct as they do hold the same values when inputting a value for $k$ but I do not understand how the manipulation occurred?
Thank you.
\begin{align} 8(8^k)-3(3^k)&= 8(8^k)-(8-5)(3^k)\\ &= 8 (8^k)-8(3^k)+5(3^k)\\ &=8(8^k-3^k)+5(3^k) \end{align}