If there are twice as many red balls as blue balls, and there are 11 blue balls, then there are 2*11 = 22 red balls.
So, there are a total of 11 blue balls + 22 red balls = 33 blue and red balls.
Since Ryan has 40 balls in total, and there are 33 blue and red balls, then there must be 40-33 = 7 green balls.
#### 7
The answer is: 7
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
If Ryan has 40 balls and there are twice as many red balls as blue balls, with 11 blue balls, how many green balls are there in total?

### Answer:
