Two teams, A and B, hold a badminton match. Each team has 3 players. The loser is eliminated until one of the two teams has all 3 players eliminated. How many ways are there to win?
甲、乙两队举行羽毛球比赛，每队各3人，比赛中输者被淘汰，直到两队中有一方3人都被淘汰，则有几种赢法？
<gadget id="calculator">3 * 3</gadget>
<output>9</output>

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

<gadget id="calculator">3 * 16</gadget>
<output>48</output>

<gadget id="calculator">3 * 3 * 2 * 4</gadget>
<output>72</output>

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

<gadget id="calculator">48 + 72 + 6</gadget>
<output>126</output>

<result>126</result>