According to the questionnaire survey, students in a certain class have three attitudes towards mathematics: "like", "dislike" and "average". Among them, there are 18 people who hold "average" than "like". Select 8 students from the whole class for discussion. As a result, there are 5 students who like mathematics, 1 student who does not like mathematics, and 2 students who hold "average" attitudes. According to this calculation, how many students are there in this class?
经问卷调查，某班同学对数学分别持"喜欢""不喜欢"和"一般"三种态度，其中持"一般"的比"喜欢"的少18人，按"分层抽样"的方法从全班同学中选出8名学生座谈，结果有5名喜欢数学的同学，1名不喜欢数学的同学和2名持"一般"态度的同学，照这样推算，这个班共有多少名同学？
<gadget id="calculator">5 - 2</gadget>
<output>3</output>

<gadget id="calculator">18 / 3</gadget>
<output>6</output>

<gadget id="calculator">5 + 1 + 2</gadget>
<output>8</output>

<gadget id="calculator">6 * 8</gadget>
<output>48</output>

<result>48</result>