\[a - b = 3;\ \ \ \ ab = - 2\]
\[a^{2} + b^{2} =\]
\[= a^{2} - 2ab + b^{2} + 2ab =\]
\[= (a - b)^{2} + 2ab = 9 - 4 = 5.\]