Amanda had 7 candy bars. She gave 3 to her sister. The next day, Amanda won some prize money and bought another 30 candy bars. She gave her sister 4 times as many candy bars as she did the first time. How many candy bars did Amanda keep for herself altogether?
Amanda has 7 - 3 = 
<gadget id="calculator">7-3</gadget>
<output>4</output>
4 candy bars.
Amandy gives her sister 4 x 3 = 
<gadget id="calculator">4*3</gadget>
<output>12</output>
12 candy bars.
She has 30 - 12 = 
<gadget id="calculator">30-12</gadget>
<output>18</output>
18 candy bars remaining.
In total she keeps 18 + 4 = 
<gadget id="calculator">18+4</gadget>
<output>22</output>
22 candy bars.

<result>22</result>