Optimal approach: powers of 2 allocation: 1, 2, 4, 8, ..., doubling until sum $\ge 158$. Sum of first $n$ powers of 2 = $2^n - 1$. For $2^n - 1 \ge 158 \Rightarrow 2^n \ge 159 \Rightarrow n = 8$, but these are coins; to minimize bags, use geometric progression with ratio 3 and adjustments — correct count = 12.