If the slope of the curve

y=−kx^3+ 3k at x=-2 is 3, then what is the value of k?

dy/dx = -3 k x^2

3 = -3 k (4)
k = -1/4