Note that an equation of the form $\mathbf{A}\vec{x}=\vec{b}$ has a unique solution iff $\det\mathbf{A}\not=0$, therefore, we can find the value of $\mathbf{A}$ for which there is a unique solution:
$$\det\mathbf{A}=\begin{vmatrix}3 & -2 & 1 \\ 5 & -8 & 9 \\ 2 & 1 & A \end{vmatrix}\not= 0\implies-14A-42\not=0 \therefore A\not=-3$$
If $A\not=3$ then $B\in\mathbb{R}$ is a sufficient condition to ensure a unique solution.
If there are an infinite number of solutions, then $A=-3$ and $3x-2y+z=B$ is some linear combination of $5x-8y+9z=3$ and $2x+y-3z=-1$. Solving the following system:
$$\begin{pmatrix}3 \\ -2 \\ 1\end{pmatrix}=\lambda\begin{pmatrix}5 \\ -8 \\ 9\end{pmatrix}+\mu\begin{pmatrix}2 \\ 1 \\ -3\end{pmatrix}$$
Gives the solutions $\lambda=\frac{1}{3}$ and $\mu=\frac{2}{3}$, therefore $B=1-\frac{2}{3}=\frac{1}{3}$ for infinite solutions.
If there are no solutions then the three equations are inconsistent and therefore $B\not=\frac{1}{3}$.