If the parabola is tangent to $x$-axis it means $y=0$ so you must solve
\begin{align*}
0 &= x^2-2kx+16
\end{align*}
for $x$ and $k$. It also means there is only one value possible for $x$, otherwise the parabola will cross the $x$ axis instead.
At this point you can choose (a) applying the formula for quadratic equations, or (b) factor the expression. We'll do both so you can choose the one you like the most.
(a) applying the formula for quadratic equations requires $a=1$, $b=-2k$ and $c=16$
\begin{align*}
x &= \frac{ -(-2k) \pm\sqrt{ (-2k)^2 -4(1)(16) } }{ 2(1) }\\
&= \frac{ 2k\pm\sqrt{4k^2-4\cdot 16} }{ 2 }\\
&= \frac{ 2k \pm 2 \sqrt{k^2-16} }{ 2 } \\
&= k \pm \sqrt{k^2 -16}
\end{align*}
You need an unique value for $x$ so $k^2-16$ must be zero, therefore $k=4$ and $x=4$.
(b) to factor the expression,
\begin{align*}
x^2-2kx+k^2 &= x^2-2kx+16 \\
(x-k)^2 &= x^2-2kx+16
\end{align*}
means that $k=4$ and solving the expression $(x-4)^2=0$ gives $x=4$.