Let $f(x) = 3x^2 - 12x + k$, where $k$ is a constant. The function $f(x)$ has a minimum value of 5. What is the value of $k$?