So this is the answer to the logic puzzle that was posted here.
The fewest amount of bags that you can open is 1 and the fewest amount of beans to look at is also 1.
How you go about it is that you realize that all of the bags are incorrect. So if you open the red and green bag, and just take out one jelly bean, you know that the entire bag must be that color. So for example, say it is red. We know the bag cannot be red and green as it is labeled wrong. So it must be red. That means the bag labeled red has to be green as all bags are labeled wrong and the green bag must be the red and green bag. You can do a similar approach if the jelly bean you pull out is green.