Given. Two implicit surfaces $f=0$ and $g=9$, both passing through $P=(3,-1,1)$ (check: $f(P)=9+1+1-2-9=0$ ✓, $g(P)=9+1-1=9$ ✓).
The two surfaces meet along a curve through $P$; the tangent line there is perpendicular to both surface normals, i.e. along $\nabla f\times\nabla g$.
Find. (a) The tangent plane to $g=9$ at $P$. (b) The tangent line to the intersection curve $f=0\cap g=9$ at $P$.
Approach. (a) $\nabla g$ at $P$ is normal to the level surface $g=9$; write the plane through $P$ with that normal. (b) The intersection curve's tangent direction is perpendicular to both $\nabla f$ and $\nabla g$ at $P$, i.e. parallel to $\nabla f\times\nabla g$.
(a) Gradient of $g$ at $P$. $\nabla g=(3,2y,-2z)\big|_P=(3,-2,-2)$.
(a) Tangent plane. Through $P=(3,-1,1)$ with normal $(3,-2,-2)$:
$$3(x-3)-2(y+1)-2(z-1)=0\ \Rightarrow\ \boxed{3x-2y-2z=9}$$
(Check: $3(3)-2(-1)-2(1)=9+2-2=9$ ✓.)
(b) Gradient of $f$ at $P$. $\nabla f=(2x-3,2y+2,2z)\big|_P=(3,0,2)$.
(b) Cross product for the tangent direction.
$$\nabla f\times\nabla g=\begin{vmatrix}\mathbf i&\mathbf j&\mathbf k\\3&0&2\\3&-2&-2\end{vmatrix}=\big(0(-2)-2(-2)\big)\mathbf i-\big(3(-2)-2(3)\big)\mathbf j+\big(3(-2)-0(3)\big)\mathbf k=(4,12,-6).$$
This simplifies (dividing by 2) to the direction $(2,6,-3)$.
(b) Write the tangent line. Through $P=(3,-1,1)$ with direction $(2,6,-3)$:
$$\boxed{(x,y,z)=(3,-1,1)+t(2,6,-3),\quad t\in\mathbb R}$$