a. x2 - 6x = -9
<=> x2 - 6x + 9 = 0
<=> (x - 3)2 = 0
<=> x - 3 = 0
<=> x = 3
b. 2(x + 3) - x2 + 3x = 0
<=> 2(x + 3) - x(x + 3) = 0
<=> (2 - x)(x + 3) = 0
<=> \(\left[{}\begin{matrix}2-x=0\\x+3=0\end{matrix}\right.\)
<=> \(\left[{}\begin{matrix}x=2\\x=-3\end{matrix}\right.\)