Students line up to do exercises, the number of people in each row is equal, and the number of people in each column is also equal. Xiao Ming is the 2nd from the left, the 3rd from the right, the 6th from the front, and the 7th from the back. How many students are doing exercises in total?
同学们排队做操，每行人数相等，每列人数也相等．小明从左边数是第2个，从右边数是第3个，从前数是第6个，从后数是第7个．一共有多少个同学在做操．
<gadget id="calculator">3 - 1</gadget>
<output>2</output>

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

<gadget id="calculator">7 - 1</gadget>
<output>6</output>

<gadget id="calculator">6 + 6</gadget>
<output>12</output>

<gadget id="calculator">4 * 12</gadget>
<output>48</output>

<result>48</result>