We can use the points we know to find a system of equations

Since we know the derivative represents slope we know when x=-2 that so we get

Now using the point (-2,7) in f(x) we get

and the point (-1,0) we get

We now have a system of equations in a,b, and c

Multiplying 3 by -1 and adding it to 2 gives

Now if add equation one to this one we get

Plugging this in above gives

Now putting a and b into equation 3 gives

So we get

I hope this helps.