I am not sure about this being a negative binomial distribution problem or a variation of Coupon collector's problem.
Here's the problem, Suppose, you want to build a house and I told you that you need certain type and certain number of items to build it. Let's consider you need
Bricks $- ~4$,
Cement $-~ 1$,
Metal $- ~1$,
Gravel $- \ 1$,
Wood $-\ 2$
Now, in order to get these items, you need to open a locker and every time you open it you get only one item. Also, know that the locker contains an item that you don't need at all - Feathers. The following are their probabilities
(Let's use their initials for the sake of simplicity)
B - 30%
C - 5%
F - 10%
G - 10%
M - 35%
W - 10%
The question here is what's the average number of times you will have to open the locker if you want to build a house?
The way I thought about solving this is by first multiplying the no of items required for a type by its expected number which is $\frac{1}{probability}$ for that item (for ex. $3.33$ times for Bricks multiplied by the number we want which is $4$ ) and then adding together for all the type of materials we want. I am not so good at this type of problems so please guide me.
A careful analysis is hard because of the lack of symmetry. If one item is rare you can assume you have enough of all the rest by the time you get that one. Here both cement and wood need on average $20$ lockers to give you what you need.
Since both cement and wood are rare we will ignore the correlation that comes from the fact that if you get cement you can't get wood. Then if you open $n$ lockers the chance you have gotten cement is $1-0.95^n$. The chance you have gotten two wood or more is $1-0.9^n-n\cdot 0.1 \cdot 0.9^{n-1}$. The easy calculation is what is the $n$ that guarantees the product of these exceeds $0.5$, which will be close to the expected number of tries to get them both. We can ask Alpha and learn you cross the threshold at $n=24$