Let’s break it down step-by-step!
**Base Rate:**
Each pack has a 12% chance for a legendary, unless 9 consecutive packs have
no legendary, then the 10th is guaranteed legendary.
**We need the expected (average) number of legendaries per pack given this “
pity timer” rule.**