8. (6 points) The white rabbit and the gray rabbit each have several. If 6 white rabbits and 4 gray rabbits are put in one cage, there are still 9 white rabbits left, and the gray rabbits are exactly finished; if 9 white rabbits and 4 gray rabbits are put in one cage, the white rabbits are exactly finished, and there are still 16 gray rabbits left. Then the total number of white rabbits and gray rabbits is $\qquad$.
【Solution】Solution: Let the number of cages placed for the first time be $A$; the number of cages placed for the second time be $B$,
$$
\left\{\begin{array}{l}
6 A+9=9 B \\
4 A=4 B+16
\end{array}\right.
$$

Solving, we get: $A=15, B=11$,
So the number of white rabbits is: $6 \times 15+9=99$,
The number of gray rabbits is $15 \times 4=60$.
The total number of white and gray rabbits is: $99+60=159$ (rabbits).
Answer: The total number of white and gray rabbits is 159.
Therefore, the answer is: 159.