The median of the set of numbers $\{$12, 38, 45, $x$, 14$\}$ is five less than the mean. If $x$ is a negative integer, what is the value of $x$?

Let's think step by step and output the final answer within \boxed{}.
user