If you write $3x+-9$, people will probably know what you are talking about, but this is usually more acceptable: $$3x+(-9)$$ These parentheses make it more clear that the $-$ is a negative sign on the scalar $-9$ while the $+$ is the operation signifying the addition of the terms $3x$ and $-9$.