Note that \(\mathcal{B} = \left\{\vec u_1, \vec u_2\right\}\) is an orthogonal basis for \(W\) since \(\vec u_1 \cdot \vec u_2 = 0\text{.}\) Therefore,
\begin{align*}
\widehat y \amp = \proj_W\vec y \\
\amp = \proj_{\vec u_1}\vec y + \proj_{\vec u_2}\vec y\\
\amp = \dfrac{\vec y \cdot \vec u_1}{\vec u_1 \cdot \vec u_1} \vec u_1 + \dfrac{\vec y \cdot \vec u_2}{\vec u_2 \cdot \vec u_2}\vec u_2\\
\amp = \dfrac{7}{14}\begin{bmatrix} 3 \\ -1 \\ 2 \end{bmatrix} - \dfrac{15}{6}\begin{bmatrix} 1 \\ -1 \\ -2 \end{bmatrix}\\
\amp = \begin{bmatrix} -1 \\ 2 \\ 6 \end{bmatrix}\\
\amp = \vec y
\end{align*}
Note that \(\widehat y = \vec y\text{.}\) What does this mean? Since \(\widehat y\) must be a vector in \(W\text{,}\) it must be the case that \(\vec y \in W\text{.}\) Hopefully, it makes sense that for any vector already in \(W\text{,}\) say \(\vec w \in W\text{,}\) we will have \(\widehat w = \proj_W \vec w = \vec w\text{.}\) In this example, we have
\begin{equation*}
w^\perp = \vec y - \widehat y = \vec 0\text{.}
\end{equation*}
Recall that in general we should have that \(\widehat y \cdot w^\perp = 0\text{.}\) This is definitely true here.