There was some money in the cookie jar. Doris spent $6 from the cookie jar. Martha spent half as much as Doris. If there were $15 left in the cookie jar, how much money, in dollars, was there in the cookie jar at first?
Martha spent 6/2=
<gadget id="calculator">6/2</gadget>
<output>3</output>
3 dollars.
Martha and Doris spent 6+3=
<gadget id="calculator">6+3</gadget>
<output>9</output>
9 dollars.
There were 15+9=
<gadget id="calculator">15+9</gadget>
<output>24</output>
24 dollars in the cookie jar at first.

<result>24</result>