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?
Martha gave James 5 + 2 = 
<gadget id="calculator">5+2</gadget>
<output>7</output>
7 apples.
So Martha was left with 20 - 5 - 7 = 
<gadget id="calculator">20-5-7</gadget>
<output>8</output>
8 apples.
To be left with only 4 apples, Martha would need to give away 8 - 4 = 
<gadget id="calculator">8-4</gadget>
<output>4</output>
4 more apples.

<result>4</result>