[The statement of the problem as given below could be better. Essentially we are asked if it is possible to to distribute 50 white pearls and 50 black pearls in two boxes (not necessarily 50 in each box), so that if a box is chosen at random and then a pearl drawn at random from that box, the chance that it is black is more than 1/2.]
But she can mix them up. She can put all the pearls in one box, she can put half the white ones in one box and half the black ones in the same box so she has 25 of each color in one box. Is there any way she can mix up these pearls to improve her chances beyond 50/50? That's the question.
put one black pearl in box A and the rest in box B.
Proof:
If we put an equal number of pearls in each box, the probability of getting a black pearl is only 1/2. Since putting one black pearl in box A and the rest in box B does better than 1/2, the optimal solution must have more black pearls than white in one box and more white pearls than black in the other. Show that, the proposed solution maximizes the probability of getting a black pearl in both the box with more black pearls than white and the box with more white pearls than black.