A class of students decided to divide into groups to visit patients injured in a train accident. If there are 7 people in a group, there will be 1 person left, and if there are 6 people in a group, there will be 1 person left. It is known that the number of students in this class does not exceed 50. How many people are there in this class? ．
某班同学决定分组去看望动车事故受伤的病人，按7人一组还剩1人，按6人一组也还剩1人，已知这个班人数不超过50人，则这个班级有多少人．
<gadget id="calculator">6 * 7</gadget>
<output>42</output>

<gadget id="calculator">42 + 1</gadget>
<output>43</output>

<result>43</result>