Given the task definition, example input & output, solve the new input case.
You are given a math word problem and you are supposed to apply a single mathematical operator like addition, subtraction, multiplication, or division on the numbers embedded in the text to answer the following question and then only report the final numerical answer.
Example: for a birthday party cody bought 30 regular sodas and 5 diet sodas . How many sodas are there ?
Output: 35
total sods = 30+5 = 35

New input case for you: 7 red apples and 2 green apples are in the basket . how many apples are in the basket ?
Output:
9