Adam has 18 magnets. He gave away a third of the magnets, and he still had half as many magnets as Peter. How many magnets does Peter have?
Adam gave away 18/3 = 
<gadget id="calculator">18/3</gadget>
<output>6</output>
6 magnets.
Adam had 18-6 = 
<gadget id="calculator">18-6</gadget>
<output>12</output>
12 magnets left.
Peter has 12*2 = 
<gadget id="calculator">12*2</gadget>
<output>24</output>
24 magnets.

<result>24</result>