John Smith buys 3 cakes for $12 each and splits the cost with his brother.  How much did he pay?
The cakes cost 3*12=$
<gadget id="calculator">3*12</gadget>
<output>36</output>
36.
So he paid 36/2=$
<gadget id="calculator">36/2</gadget>
<output>18</output>
18.

<result>18</result>