This is a streamlined version of a real question that came up in my company, wanted to check and be sure I did it right.
Our company makes boxes with random contents. Each box has 2 slots, slot A and slot B. So each box has exactly 2 items, 1 in slot A and 1 in slot B.
There are three types of items. Let's call them types X, Y, and Z.
Among Type X items, 5% are considered a success
Among Type Y items, 10% are considered a fail
Among Type Z items, 25% are considered a fail
(The items taken are replaced, so the odds are constant.)
Slot A is 100% Type X.
Slot B is 80% Type X, 15% Type Y, 5% Type Z.
I keep opening boxes, seeing both items at once, until I get either a success or a fail. What are my overall odds of failing? (A box with both a success and a fail is considered a success.)
EDIT: To make it clear, for Type X, 5% of the items are a success and 95% are "neutral" - neither success nor failure. Same for the other types. So most boxes you will open will be "neutral-neutral" and you'll need to keep opening.