46. During the holidays for eight classes of the school, each with the same number of students, a trip to the museum was organized, and for the rest of the students in the school, who turned out to be 15% more, - a cultural trip to the puppet theater. How many students are there in the school, if it is known that there are no more than 520, and a total of more than 230 students participated in the excursion?
46. Let in one of the eight classes that participated in the excursion, there were $x$ students, then the museum was visited by $8 x$ students. By the condition $8 x>230$, hence $x>28 \frac{3}{4}$. The puppet theater was visited by $8 x+x \cdot 0.15=9.2 x$. Therefore, the total number of students in the school is $8 x+9.2 x=17.2 x$. By the condition $17.2 x \leqslant 520$, hence $x \leqslant 30 \frac{10}{43}$. Therefore, $x=29$ or $x=30$. Considering that only $17.2 \cdot 30$ is an integer, the condition is satisfied only by $x=30$. Therefore, the total number of students in the school is $17.2 \cdot 30=516$