Students A, B, and C are doing math problems. It is known that A did 2 more math problems than B, and C did 2 times as much as A, and 12 more math problems than B. How many math problems did they solve in total?
甲、乙、丙三个同学做数学题．己知甲比乙多做2道，丙做的是甲的2倍，比乙多做了12道，他们一共做了多少道数学题？
<gadget id="calculator">12 - 2</gadget>
<output>10</output>

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

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

<gadget id="calculator">10 - 2</gadget>
<output>8</output>

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

<gadget id="calculator">8 + 10 + 20</gadget>
<output>38</output>

<result>38</result>