Banach's matchbox with a favored pocket
Asked at Jane Street, SIG
A smoker keeps a matchbox in each pocket, each starting with matches. This time the pockets are not equally likely: he reaches into the left pocket with probability and the right with probability each time, independently. Eventually he reaches into a pocket, pulls out the box, and finds it empty.
At that moment, what is the probability the other box contains exactly matches?
Show a hint
Handle "left discovered empty" and "right discovered empty" separately, then add. The discovery is one extra reach into the already-emptied pocket, beyond the successful draws from it.
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.