Frank picked 36 apples. Susan picked 3 times as many apples as Frank. If Susan gave out half of her apples, and Frank sold a third of his, how many in total do they have left?
Susan picked 3 times as much as 36 which is 3*36 = 
<gadget id="calculator">3*36</gadget>
<output>108</output>
108 apples.
She gave out half which is 108*(1/2) = 
<gadget id="calculator">108*(1/2)</gadget>
<output>54</output>
54 apples.
She now has 108-54 = 
<gadget id="calculator">108-54</gadget>
<output>54</output>
54 apples.
Frank sold a third of 36 which is 36*(1/3) = 
<gadget id="calculator">36*(1/3)</gadget>
<output>12</output>
12 apples.
Frank now has 36-12 = 
<gadget id="calculator">36-12</gadget>
<output>24</output>
24 apples.
Altogether they now have 54+24 = 
<gadget id="calculator">54+24</gadget>
<output>78</output>
78 apples.

<result>78</result>