The dentist forbade Sonya to eat more than ten caramels a day, and if on any day she eats more than seven caramels, then for the next two days she cannot eat more than five caramels per day. What is the maximum number of caramels Sonya will be able to eat in 25 days, following the dentist's instructions?

#
If Sonya eats more than 7 caramels on any day (except the last two days), then in the next two days she will eat no more than $5+5=10$, and over three days - no more than 20 candies. This means that it would be more beneficial for her to eat 7 candies per day over these three days.

Therefore, it is more beneficial for Sonya to eat 7 candies per day for the first 23 days. In the last two days, she can eat $7+10=17$ candies (this is more beneficial than $10+5$).

Thus, the maximum number of candies eaten is $24 \cdot 7+10=178$.

## Answer

178 caramels.