Abie had 20 - 4 = <<20-4=16>>16 bags of chips after giving 4 bags of chips to her friend.

Abie has 16 + 6 = <<16+6=22>>22 bags of chips in the end.

# Answer

22
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Abie had 20 bags of chips. She gave 4 bags to her friend and bought another 6 bags of chips in the store. How many bags of chips does Abie have in the end?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
22
Abie had 20 bags of chips. She gave 4 bags to her friend and bought another 6 bags of chips in the store. How many bags of chips does Abie have in the end?
train