A quadratic curve passes through the points (-4, 12) and (0, 8).
The equation of the curve is y = x^2+kx+8.
Find the value of k.