Given the quadratic expression $3x^2 - 12x + k$, find the value of $k$ such that the expression represents a perfect square trinomial. Let's think step by step and output the final answer within \boxed{}.
user