Jame has 60 bars of gold.  He uses 10% of them to pay for tax and then loses half of what is left in divorce.  How many gold bars does he have left?
He loses 60*.1=
<gadget id="calculator">60*.1</gadget>
<output>6</output>
6 bars to taxes.
That means he has 60-6=
<gadget id="calculator">60-6</gadget>
<output>54</output>
54 bars after taxes.
So he has 54/2=
<gadget id="calculator">54/2</gadget>
<output>27</output>
27 bars after the divorce.

<result>27</result>