5. (6 points) A canteen bought 500 kilograms of rice and 200 kilograms of flour. After eating for some time, it was found that the amount of rice and flour consumed was the same, and the remaining rice was exactly 7 times the remaining flour. How many kilograms of rice and flour were consumed each? 


【Solution】Solution: Let $x$ be the kilograms of rice and flour consumed, according to the problem we have
$$
\begin{aligned}
500-x & =(200-x) \times 7, \\
500-x & =1400-7 x, \\
7 x-x & =1400-500, \\
6 x & =900, \\
x & =150 .
\end{aligned}
$$

Answer: 150 kilograms of rice and flour were consumed each.
Therefore, the answer is: 150 .