One day, students A, B, and C were doing math problems. It is known that A has done 6 more math problems than B, and C has done 2 times more than A, and 22 more math problems than B, so how many math problems have they done in total?
一天甲、乙、丙三个同学做数学题．已知甲比乙多做了6道，丙做的是甲的2倍，比乙多22道，则他们一共做了多少道数学题．
<gadget id="calculator">6 * 2</gadget>
<output>12</output>

<gadget id="calculator">22 - 12</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 + 6</gadget>
<output>16</output>

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

<gadget id="calculator">10 + 16 + 32</gadget>
<output>58</output>

<result>58</result>