The students had a broadcasting exercise competition, and the whole class happened to be arranged in 6 rows with equal numbers. Xiaohong is in the second row. Counting from the beginning, she stands at the fifth position in this row. Counting from the back, she stands at the third position in this row. How many people are there in this class?
同学们进行广播操比赛，全班正好排成人数相等的6行．小红排在第二行，从头数，她站在这行的第5个位置，从后数，她站在这行的第3个位置，这个班共有多少人．
<gadget id="calculator">5 - 1</gadget>
<output>4</output>

<gadget id="calculator">3 - 1</gadget>
<output>2</output>

<gadget id="calculator">4 + 2 + 1</gadget>
<output>7</output>

<gadget id="calculator">6 * 7</gadget>
<output>42</output>

<result>42</result>