Class 3 and Class 1 form teams with the same number of people in each row to participate in the queue performance. Wang Hong's position is the 4th from the back and the 4th from the front; the 5th from the left and the 4th from the right. How many students are there in Class 3 and Class 1?
三1班排成每行人数相同的队伍参加队列表演．王宏的位置从后数是第4个，从前数是第4个；从左数是第5个，从右数是第4个．三1班共有学生多少人．
<gadget id="calculator">4 - 1</gadget>
<output>3</output>

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

<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<gadget id="calculator">7 * 8</gadget>
<output>56</output>

<result>56</result>