5. Several students were answering in class, and each received no less than a three. Anya received a grade that is 10 less than the sum of the grades of the others; Borya received a grade that is 8 less than the sum of the grades of the others; Vera received a grade that is 6 less than the sum of the grades of the others. How many people were answering in class and what grades did they receive?
5. Four people answered. One got a "5", two got "4", and one got a "3". Let $\mathrm{S}$ be the sum of all the marks, $\mathrm{A}$ be Anya's mark, $\mathrm{B}$ be Borya's mark, and $\mathrm{V}$ be Vera's mark. From the condition, it follows that $S-A=A+10$; $\quad S-B=B+8$; $\quad S-B=B+6$.

Thus, $S=2A+10=2B+8=2B+6$.

From this, it follows that $V-B=B-A=1$. Since there were no twos, the only possible variant is $\mathrm{A}=3, \mathrm{B}=4, \mathrm{~V}=5$. Therefore, $\mathrm{S}=16$, then $\mathrm{S}-(A+B+V)=4$, which means another person got a mark of "4".