This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $AB=\begin{bmatrix}1&2&3\\0&3&2\\0&0&1\end{bmatrix}$, $|A|=1$, so $|B|=\frac{|AB|}{|A|}=3$. $B=A^{-1}(AB)=\begin{bmatrix}1&2&2\\-1&1&0\\-1&-2&-1\end{bmatrix}$ with trace $\beta=1$. $\alpha^3+\beta^3=27+1=28$. Answer: 28.