Expected value in pool mining vs. solo mining
You are assuming that Cecil and Danny can collaborate to avoid duplicating work. They can't, at least not in any meaningful way. In your example, there are a small number of boxes for them to search. In Bitcoin, there are trillions of boxes. Any collaboration about keeping track of who searched what would take much more work than everybody searching randomly and accepting the extremely small probability of checking the same thing twice.