# How do you write g: x - 12 - 2x in function notation?

(I'm doing some assuming of what your notation means and also that you intended: $g : x \rightarrow 12 - 2 x$)
$\textcolor{w h i t e}{\text{XXXX}}$$g \left(x\right) = 12 - 2 x$