1. Restate the Problem in Grid Terms:
- Alice and Bob are playing a game on a 4×9 grid.
- Alice selects 18 cells to color black.
- Bob attempts to pair as many pairs of squares which are differently colored and lie in the same row or column as possible.
- We need to find the maximum number of pairs Bob can guarantee, regardless of Alice's actions.
2. Upper Bound on Bob's Points:
- Alice can prevent Bob from getting more than 15 pairs.
- If Alice colors the upper-left 3×6 grid black, Bob cannot pair the three squares in the lower-right 1×3 and hence can only get at most 15 pairs.
3. Lower Bound on Bob's Points:
- Let xi be the number of columns with exactly i black squares, for 0≤i≤4.
- We have the equation x0+x1+x2+x3+x4=9.
4. Pairing Strategy:
- Bob can pair up all the squares in a column with 2 black squares.
- Bob can always pair up all the squares in any two columns with a total of 4 black squares.
5. Balancing the Columns:
- If x0=x4, then x1=x3 and we are done.
- This implies that Bob can leave at most 6 squares unpaired.
6. Conclusion:
- Since Bob can always ensure that at most 6 squares are unpaired, he can guarantee at least 36−6=30 pairs.
- However, since each pair consists of two cards, the number of points Bob can guarantee is 230=15.
■
The final answer is 15