8. (15 points) A primary school is conducting a height statistics survey. There are 99 students whose height does not exceed $130 \mathrm{~cm}$, with an average height of $122 \mathrm{~cm}$. There are 72 students whose height is not less than $160 \mathrm{~cm}$, with an average height of $163 \mathrm{~cm}$. The average height of students whose height exceeds $130 \mathrm{~cm}$ is $155 \mathrm{~cm}$, and the average height of students whose height is below $160 \mathrm{~cm}$ is $148 \mathrm{~cm}$. How many students are there in total? $\qquad$
【Solution】Solve: Let the number of people taller than $130 \mathrm{~cm}$ be $x$, and the number of people shorter than $160 \mathrm{~cm}$ be $y$, then $\left\{\begin{array}{l}99+x=y+72 \\ 122 \times 99+155 x=148 y+163 \times 72\end{array}\right.$,
Solving, we get $\left\{\begin{array}{l}x=522 \\ y=549\end{array}\right.$
$$
522+99=621 \text { (students) }
$$

Answer: There are a total of 621 students.
Therefore, the answer is: 621.