Xiao Ming brought some money to buy stationery, half of all the money was used to buy a stationery box, more than 2 yuan, the remaining money (1/3) was used to buy a notebook was 4 yuan less, 18 yuan was used to buy a pen, and 2 yuan was left in the end ． How much money did Xiao Ming bring to buy stationery?
小明带了一些钱去买文具，买文具盒用去所有钱的一半多2元，买本子用去余下钱的(1/3)少4元，买笔用去18元，最后还剩2元．小明带了多少钱去买文具？
<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">2 * (1/3)</gadget>
<output>2/3 = around 0.666667</output>

<gadget id="calculator">2 - (2/3) - 4</gadget>
<output>-8/3 = around -2.666667</output>

<gadget id="calculator">2 + 18 + (-8/3)</gadget>
<output>52/3 = around 17.333333</output>

<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">(1/2) * (1/3)</gadget>
<output>1/6 = around 0.166667</output>

<gadget id="calculator">1 - (1/2) - (1/3)</gadget>
<output>1/6 = around 0.166667</output>

<gadget id="calculator">(1/6) + (1/6)</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">(52/3) / (1/3)</gadget>
<output>52</output>

<result>52</result>