human
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?
assistant
How many green beans are there? ** There are 8 + 2 = <<8+2=10>>10 green beans.
How many orange beans are there? ** There are 10 -1 = <<10-1=9>>9 orange beans.
How many jellybeans are there? ** There are 8 black + 10 green + 9 orange = <<8+10+9=27>>27 jelly beans.
#### 27