The number of students in class 6 is between 40 and 50. If they are divided into groups of 8, then there are 5 more students in one group; if they are divided into groups of 12, then there are 3 groups with 1 less in each group. How many students are there.
六1班学生人数在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>