There were 37 jellybeans in a jar. Pat removed 15 of them. Pat then added 5 of the removed jellybeans back in, and then removed 4 more. How many jellybeans are now in the jar?
After removing 15 jellybeans, there were 37-15=
<gadget id="calculator">37-15</gadget>
<output>22</output>
22 jellybeans in the jar.
After adding back 5 jellybeans, there were 22+5=
<gadget id="calculator">22+5</gadget>
<output>27</output>
27 jellybeans in the jar.
After removing 4 more jellybeans, there were 27-4=
<gadget id="calculator">27-4</gadget>
<output>23</output>
23 jellybeans left in the jar.

<result>23</result>