24. Mowgli asked his monkey friends to bring him some nuts. The monkeys gathered an equal number of nuts and carried them to Mowgli. But on the way, they quarreled, and each monkey threw a nut at every other monkey. As a result, Mowgli received only 35 nuts. How many nuts did the monkeys gather, if it is known that each of them brought more than one nut?
24. Since the monkeys collected nuts equally and threw them away equally, they brought them equally. The number 35 is divisible by 5, so we have $35=5 \cdot 7$. There can be 2 cases:
1) There were 5 monkeys, each brought 7 nuts, and each threw away 4 nuts, so each collected $7+4=11$.
2) There were 7 monkeys, each brought 5 nuts, and each threw away 6 nuts, so each collected $5+6=11$.