\[a + b = 5;\ \ \ \ ab = - 2:\]
\[(a - b)^{2} = a^{2} - 2ab + b^{2} =\]
\[= a^{2} + 2ab + b^{2} - 4ab =\]
\[= (a + b)^{2} - 4ab =\]
\[= 5^{2} - 4 \cdot ( - 2) = 25 + 8 = 33.\]
\[Ответ:33.\ \]