The number of people in a class is between 40 and 50 people. If there are 8 people in each group, there will be 5 more people in one group; if there are 12 people in each group, there will be 3 groups with 1 less person in each group. How many students are there in this class.
某班人数在40至50人之间．如果每组8人，就有一组多5人；如果每12人一组，就有3个小组各少1人．该班学生有多少人．
<gadget id="calculator">24 * 2</gadget>
<output>48</output>

<gadget id="calculator">48 - 3</gadget>
<output>45</output>

<result>45</result>