The mean is
\begin{equation*}
\bar{\mathbf{x}}
=
\begin{bmatrix}
2\\
2
\end{bmatrix}.
\end{equation*}
Therefore
\begin{equation*}
Z=
\begin{bmatrix}
2 \amp 1\\
1 \amp 2\\
-2 \amp -1\\
-1 \amp -2
\end{bmatrix}.
\end{equation*}
We calculate
\begin{align*}
C\\
\amp=\frac14Z^TZ\\
\amp=\frac14
\begin{bmatrix}
10 \amp 8\\
8 \amp 10
\end{bmatrix}\\
\amp=
\begin{bmatrix}
5/2 \amp 2\\
2 \amp 5/2
\end{bmatrix}.
\end{align*}
The eigenvalues are
\begin{equation*}
\lambda_1=\frac92,
\qquad
\lambda_2=\frac12.
\end{equation*}
Corresponding unit eigenvectors are
\begin{equation*}
\mathbf{v}_1
=
\frac1{\sqrt2}
\begin{bmatrix}
1\\
1
\end{bmatrix},
\qquad
\mathbf{v}_2
=
\frac1{\sqrt2}
\begin{bmatrix}
1\\
-1
\end{bmatrix}.
\end{equation*}
The first score vector is
\begin{equation*}
\mathbf{t}_1
=
Z\mathbf{v}_1
=
\frac1{\sqrt2}
\begin{bmatrix}
3\\
3\\
-3\\
-3
\end{bmatrix}.
\end{equation*}
For
\begin{equation*}
\mathbf{z}_1
=
\begin{bmatrix}
2\\
1
\end{bmatrix},
\end{equation*}
the score is
\begin{equation*}
\mathbf{v}_1^T\mathbf{z}_1
=
\frac3{\sqrt2}.
\end{equation*}
Thus
\begin{equation*}
\widehat{\mathbf{z}}_1
=
\frac3{\sqrt2}\mathbf{v}_1
=
\begin{bmatrix}
3/2\\
3/2
\end{bmatrix},
\end{equation*}
and
\begin{equation*}
\mathbf{r}_1
=
\begin{bmatrix}
1/2\\
-1/2
\end{bmatrix}.
\end{equation*}
We have
\begin{equation*}
\mathbf{r}_1\cdot\mathbf{v}_1
=
0.
\end{equation*}
Also,
\begin{equation*}
\|\mathbf{z}_1\|^2=5,
\qquad
(\mathbf{v}_1^T\mathbf{z}_1)^2=\frac92,
\qquad
\|\mathbf{r}_1\|^2=\frac12,
\end{equation*}
so
\begin{equation*}
5=\frac92+\frac12.
\end{equation*}
With
\begin{equation*}
V
=
\frac1{\sqrt2}
\begin{bmatrix}
1 \amp 1\\
1 \amp -1
\end{bmatrix},
\end{equation*}
we obtain
\begin{equation*}
V^TCV
=
\begin{bmatrix}
9/2 \amp 0\\
0 \amp 1/2
\end{bmatrix}.
\end{equation*}
The first direction captures the fraction
\begin{align*}
\frac{\lambda_1}{\lambda_1+\lambda_2}\\
\amp=\frac{9/2}{9/2+1/2}\\
\amp=\frac9{10}
\end{align*}
of the total centered variation.
Finally,
\begin{equation*}
\bar{\mathbf{x}}
+
\spans\{\mathbf{v}_1\}
=
\left\{
\begin{bmatrix}
2\\
2
\end{bmatrix}
+
s
\begin{bmatrix}
1\\
1
\end{bmatrix}
:
s\in\R
\right\}.
\end{equation*}
This is the line \(y=x\text{.}\)