Запишем область допустимых значений: \(6-x \ge 0\,\,\,\,\,\, \Leftrightarrow \,\,\,\,\,-x \ge -6\,\,\,\,\,\, \Leftrightarrow \,\,\,\,\,x \le 6.\)
\({x^2}-3x + \sqrt {6-x} = \sqrt {6-x} + 40\,\,\,\,\,\, \Leftrightarrow \,\,\,\,\,\left\{ \begin{array}{l}{x^2}-3x = 40,\\x \le 6\end{array} \right.\,\,\,\,\,\, \Leftrightarrow \,\,\,\,\,\left\{ \begin{array}{l}{x^2}-3x-40 = 0,\\x \le 6.\end{array} \right.\)
\({x^2}-3x-40 = 0;\,\,\,\,\,\,D = {\left( {-3} \right)^2}-4 \cdot 1 \cdot \left( {-40} \right) = 169;\,\,\,\,\,\left[ \begin{array}{l}x = \dfrac{{3-13}}{2} = -5,\\x = \dfrac{{3 + 13}}{2} = 8.\end{array} \right.\)
\(\left\{ \begin{array}{l}{x^2}-3x-40 = 0,\\x \le 6\end{array} \right.\,\,\,\,\,\, \Leftrightarrow \,\,\,\,\,\left\{ \begin{array}{l}\left[ \begin{array}{l}x = -5,\\x = 8,\end{array} \right.\\x \le 6\end{array} \right.\,\,\,\,\,\, \Leftrightarrow \,\,\,\,\,x = -5.\)
Ответ: \(-5.\)