[tex]\bf \qquad \qquad \qquad \qquad \textit{function transformations}
\\ \quad \\\\
\begin{array}{rllll}
% left side templates
f(x)=&{{ A}}({{ B}}x+{{ C}})+{{ D}}
\\ \quad \\
y=&{{ A}}({{ B}}x+{{ C}})+{{ D}}
\\ \quad \\
f(x)=&{{ A}}\sqrt{{{ B}}x+{{ C}}}+{{ D}}
\\ \quad \\
f(x)=&{{ A}}(\mathbb{R})^{{{ B}}x+{{ C}}}+{{ D}}
\\ \quad \\
f(x)=&{{ A}} sin\left({{ B }}x+{{ C}} \right)+{{ D}}
\end{array}[/tex]
so hmm notice that template above, keep in mind that
[tex]\bf \begin{array}{llll}
% right side info
\bullet \textit{ stretches or shrinks horizontally by } {{ A}}\cdot {{ B}}\\\\
\bullet \textit{ flips it upside-down if }{{ A}}\textit{ is negative}
\\\\
\bullet \textit{ horizontal shift by }\frac{{{ C}}}{{{ B}}}\\
\qquad if\ \frac{{{ C}}}{{{ B}}}\textit{ is negative, to the right}\\\\
\qquad if\ \frac{{{ C}}}{{{ B}}}\textit{ is positive, to the left}\\\\
\end{array}[/tex]
[tex]\bf \begin{array}{llll}
\bullet \textit{ vertical shift by }{{ D}}\\
\qquad if\ {{ D}}\textit{ is negative, downwards}\\\\
\qquad if\ {{ D}}\textit{ is positive, upwards}\\\\
\bullet \textit{ period of }\frac{2\pi }{{{ B}}}
\end{array}[/tex]
so hmm with that in mind, let's take a peek of yours
[tex]\bf \begin{array}{llllll}
g(x)=&(&x&-4)^2&+2\\\\
g(x)=&1(&1x&-4)^2&+2\\
&\uparrow &\uparrow &\uparrow &\uparrow \\
&A&B&C&D
\end{array}[/tex]
C is -4, thus, the horizontal shift from f(x), is to the "right by 4 units", or you can use the C/B notation, will will be -4/1 or -4 anyway