On Sunday, Xiao Ming bought some apples to treat his classmates, and after eating all (5/9), there were 3 less apples. When his mother came home, she brought back 31 more apples. As a result, the number of apples now is 20% more than the number before eating. How many apples did Xiao Ming buy?
星期天，小明买来一些苹果招待同学，吃了全部的(5/9)少3个，妈妈回家时，又带回来31个，结果现在的苹果数比吃以前的个数还多20%．原来小明买来多少个苹果？
<gadget id="calculator">3 + 31</gadget>
<output>34</output>

<gadget id="calculator">5 / 9</gadget>
<output>5/9 = around 0.555556</output>

<gadget id="calculator">20 / 100</gadget>
<output>1/5 = around 0.2</output>

<gadget id="calculator">(1/5) - 1</gadget>
<output>-4/5 = around -0.8</output>

<gadget id="calculator">(5/9) + 1 + (-4/5)</gadget>
<output>34/45 = around 0.755556</output>

<gadget id="calculator">34 / (34/45)</gadget>
<output>45</output>

<result>45</result>