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?
Please reason step by step, and put your final answer within \boxed{}.
user