On Monday Buddy has 30 baseball cards. On Tuesday Buddy loses half of them. On Wednesday Buddy buys 12 baseball cards. On Thursday he buys a third of what he had on Tuesday. How many baseball cards does he have on Thursday?
On Tuesday Buddy has 30/2 = 
<gadget id="calculator">30/2</gadget>
<output>15</output>
15 baseball cards.
On Wednesday Buddy has 15+12 = 
<gadget id="calculator">15+12</gadget>
<output>27</output>
27 baseball cards.
On Thursday Buddy buys 15/3 = 
<gadget id="calculator">15/3</gadget>
<output>5</output>
5 baseball cards.
On Thursday Buddy has a total of 27+5 = 
<gadget id="calculator">27+5</gadget>
<output>32</output>
32 baseball cards.

<result>32</result>