There is a pile of chess pieces, first take away half more than 16 pieces, then take the remaining half less than 12 pieces, and finally there are 58 pieces left. How many pieces were there in total?
有一堆棋子，先拿去一半多16枚，又拿去余下的一半少12枚，最后还剩58枚．原来共有多少枚？
<gadget id="calculator">58 - 12</gadget>
<output>46</output>

<gadget id="calculator">46 * 2</gadget>
<output>92</output>

<gadget id="calculator">92 + 16</gadget>
<output>108</output>

<gadget id="calculator">108 * 2</gadget>
<output>216</output>

<result>216</result>