Martha gave James 5 + 2 = <<5+2=7>>7 apples.

So Martha was left with 20 - 5 - 7 = <<20-5-7=8>>8 apples.

To be left with only 4 apples, Martha would need to give away 8 - 4 = <<8-4=4>>4 more apples.

# Answer

4
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Martha has 20 apples. She decided to split them among her friends. Jane got 5 apples from her, and James got 2 more than Jane. How many more apples would Martha need to give away to be left with only 4 of them?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
4
Martha has 20 apples. She decided to split them among her friends. Jane got 5 apples from her, and James got 2 more than Jane. How many more apples would Martha need to give away to be left with only 4 of them?
train