Xiao Ming and Xiao Hua are in Class 1, Primary 6. The number of students in this class is between 20 and 30, and everyone's date of birth is different. Xiao Ming said: "The number of people who are older than me in this class is twice as many as the number of people who are younger than me." Xiao Hua said: "The number of people who are older than me in this class is three times the number of people who are younger than me." How many students are there in this class?
小明与小华同在小六1班，该班学生人数介于20和30之间，且每个人的出生日期均不相同．小明说："本班比我大的人数是比我小的人数的两倍"，小华说："本班比我大的人数是比我小的人数的三倍"．问这个班有多少名学生？
<gadget id="calculator">24 + 1</gadget>
<output>25</output>

<result>25</result>