Terry spent 6$ for breakfast on Monday, twice as much on Tuesday, and on Wednesday Terry spent double what he did the previous two days combined.  How much did Terry spend total?
Monday: 
<gadget id="calculator">6</gadget>
<output>6</output>
6$
Tuesday:6(2)=12$
Wednesday:2(6+12)=36$
Total:6+12+36=
<gadget id="calculator">6+12+36</gadget>
<output>54</output>
54$

<result>54</result>