A bag of jellybeans contains 8 black beans and 2 more green beans. It also contains 1 less orange bean than green beans. How many jellybeans are there in the bag?
There are 8 + 2 = 
<gadget id="calculator">8+2</gadget>
<output>10</output>
10 green beans.
There are 10 -1 = 
<gadget id="calculator">10-1</gadget>
<output>9</output>
9 orange beans.
There are 8 black + 10 green + 9 orange = 
<gadget id="calculator">8+10+9</gadget>
<output>27</output>
27 jelly beans.

<result>27</result>