Theo VI-ét:\(\left\{{}\begin{matrix}x_1+x_2=4\\x_1x_2=m-1\end{matrix}\right.\)
\(x^3_1+x^3_2-40=0\\ \Rightarrow\left(x_1+x_2\right)\left(x^2_1-x_1x_2+x^2_2\right)=0\\\Rightarrow4\left[\left(x^2_1+x_2^2\right)^2-3x_1x_2\right]-40=0\\ \Rightarrow\left(x^2_1+x_2^2\right)^2-3x_1x_2-10=0\\ \Rightarrow4^2-3\left(m-1\right)-10=0\\ \Rightarrow16-3m+3-10=0\\ \Rightarrow9-3m=0\\ \Rightarrow m=3\)