Final answer:
The least number of balls you need to pull out in order to get 2 red or 2 green balls is 8 balls.
Step-by-step explanation:
To find the least number of balls you need to pull out in order to get 2 red or 2 green balls, you can consider the worst-case scenario. In this case, you would need to pull out all the green balls first (7) and then pull out 1 more ball to guarantee getting 2 red balls since there are only 12 red balls in the bag.
So, the least number of balls you need to pull out is 7 (green balls) + 1 (red ball) = 8 balls.