The school holds a table tennis competition. There are 16 people in each of Group A and Group B. Each group will compete in pairs. The loser will be eliminated and the winner will enter the next round. How many games are there in total for a group match?
学校举行乒乓球比赛，A组、B组两个小组各有16人，每组两人一对进行比赛，负者被淘汰、胜者进入下一轮，最后两组第一名进行决赛，两个小组赛一共要进行多少场比赛？
<gadget id="calculator">16 / 2</gadget>
<output>8</output>

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

<gadget id="calculator">16 / 2 / 2 / 2</gadget>
<output>2</output>

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

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

<gadget id="calculator">15 * 2</gadget>
<output>30</output>

<gadget id="calculator">30 + 1</gadget>
<output>31</output>

<result>31</result>