In order for this polynomial (with respect to x) to have real roots, its discriminant should be non negative.
Which means
The last inequality is also a polynomial inequality.
The polynomial (with respect to m) has the following discriminant:
Thus the roots of this polynomial are:
When a polynomial has two positive roots named y, z for example where y<z the sign of the polynomial goes as following.
If the coefficient of the highest order term is positive then the polynomial is positive for m<y and m>z and negative for y<m<z.
If the coefficient of the highest order term is negative then the polynomial is negative for m<y and m>z and positive for y<m<z.
In the polynomial:
The coefficient of the highest order term is 1 thus the polynomial is non positive at the interval [-1,6].
Thus the solution to the exercise is
I apologize for any typos or wrong calculations.