3. There are 5 rooms $A, B, C, D, E$ arranged in a circular pattern, with the number of people living in them being $17, 9, 14, 16, 4$ respectively. Now, adjustments are to be made so that the number of people in each room is the same, and it is stipulated that people can only move to the adjacent left or right room. How many people should each room move to the left or right so that the total number of people moved is minimized?
(Tip: Let the number of people moved from room $A$ to room $B$ be $x_{B}$, and so on, then we have
$$
\begin{array}{l}
9+x_{B}-x_{C}=14+x_{C}-x_{D}=16+x_{D}-x_{E} \\
=4+x_{E}-x_{A}=17+x_{A}-x_{B} \\
=\frac{1}{5}(17+9+14+16+4)=12 .
\end{array}
$$

This is transformed into finding
$$
\begin{array}{l}
y=\left|x_{B}-5\right|+\left|x_{B}\right|+\left|x_{B}-3\right|+ \\
\left|x_{B}-1\right|+\left|x_{B}+3\right|
\end{array}
$$

The minimum value of $y$. By the shortest distance between two points is a straight line, we get $x_{B}=1$. Thus, $x_{A}=$ $-4, x_{B}=1, x_{C}=-2, x_{D}=0, x_{E}=4$. The minimum total number of people moved is $4+1+2+0+4=11$.)