This is an interesting problem. The underlying solution is to solve a system of equations.
First we need to define what's a cubic polynomial function :
f(x) =
, where a,b,c,d are constant values.
We assume from the problem that f(-1) = 40, and that the zeros of our unknown function are -6,-5 and -2.
This gives us a system of equation to solve :
Good luck