← All brainteasers
Probability · Easy
The Cookie Problem
One jar has 30 vanilla and 10 chocolate cookies. A second jar has 20 vanilla and 20 chocolate. You pick a jar at random, each with probability 1/2, and then take a cookie from it at random. The cookie is vanilla. What is the probability that it came from the first jar?
Sign in free to check your answer
Your progress is saved to your account.
Were you asked this in an interview?
Sign in and tell us where. Reports from candidates show which puzzles firms really ask.