The money ratio between Xiao Ming and Xiao Hong is 5:3. If Xiaoming gives 18 yuan to Xiaohong, then Xiaoming's money is Xiaohong's (2/3). How much money did Xiao Ming have?
小明和小红两个人的钱数的比是5：3．如果小明给18元小红后，这时小明的钱数是小红的(2/3)．小明原来有多少钱？
<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<gadget id="calculator">5 / 8</gadget>
<output>5/8 = around 0.625</output>

<gadget id="calculator">2 + 3</gadget>
<output>5</output>

<gadget id="calculator">2 / 5</gadget>
<output>2/5 = around 0.4</output>

<gadget id="calculator">(5/8) - (2/5)</gadget>
<output>9/40 = around 0.225</output>

<gadget id="calculator">18 / (9/40)</gadget>
<output>80</output>

<gadget id="calculator">80 * (5/8)</gadget>
<output>50</output>

<result>50</result>