Amanda has 7 - 3 = <<7-3=4>>4 candy bars.

Amandy gives her sister 4 x 3 = <<4*3=12>>12 candy bars.

She has 30 - 12 = <<30-12=18>>18 candy bars remaining.

In total she keeps 18 + 4 = <<18+4=22>>22 candy bars.

# Answer

22
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
22
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?
train