Students in a certain class share candies. If each student has the same amount of candy, there are 12 left in the end. If you buy 12 more, each student can get exactly 12 candies. How many students are there in this class?
某班同学分糖果，如果每个同学一样多，最后剩下12颗，如果再买12颗，每个同学就刚好可以分12颗，这个班有多少个学生．
<gadget id="calculator">12 + 12</gadget>
<output>24</output>

<result>24</result>