Sean has 4 dollars more than half as much money as Fritz. Rick has 3 times as much money as Sean. If Fritz has 40 dollars, how much money do Rick and Sean have?
Sean has 40/2+4 = 
<gadget id="calculator">40/2+4</gadget>
<output>24</output>
24 dollars.
Rick has 24*3 = 
<gadget id="calculator">24*3</gadget>
<output>72</output>
72 dollars.
Sean and Rick have 24+72 = 
<gadget id="calculator">24+72</gadget>
<output>96</output>
96 dollars together.

<result>96</result>