The 10 students in the sixth grade were divided into two groups for a table tennis match, and each group had a round robin match to determine the top 2. The top 2 students in the two groups (4 in total) will go through a knockout match to determine the champion and runner-up. How many games will there be in total?
六年级10名同学分成两个小组进行乒乓球比赛，每个小组内进行循环赛，决出前2名．两个小组的前2名同学(共4名)再进行淘汰赛决出冠亚军．请问共要进行多少场比赛？
<gadget id="calculator">4 + 3 + 2 + 1</gadget>
<output>10</output>

<gadget id="calculator">10 * 2</gadget>
<output>20</output>

<gadget id="calculator">1 + 1 + 1</gadget>
<output>3</output>

<gadget id="calculator">20 + 3</gadget>
<output>23</output>

<result>23</result>