Answer:
800 pencils.
Explanation:
We have been given that 5 students each brought in 8 boxes with 10 pencils per box.
The number of pencils in this group would be
pencils.
Further, we are told that 10 students each brought in 8 boxes with 5 pencils per box.
The number of pencils in the 2nd group would be
pencils.
![\text{Total number of pencils}=400+400](https://img.qammunity.org/2020/formulas/mathematics/middle-school/vpbcafupaskh2in6tnopd8468u7qgexrus.png)
![\text{Total number of pencils}=800](https://img.qammunity.org/2020/formulas/mathematics/middle-school/jdryunnhli3alexh60g7rjx2163kdv0ybd.png)
Therefore, the students bring in 800 total pencils.