I have 5001 pearls inside bag. 2501 of them are white, and 2500 of them are black. I'll let you take out any number of pearls from the bag without looking. If you take out the same number of black and white pearls, I will reward you with a number of gold bars equivalent to the number of pearls you took."
How many pearls should you take out to give yourself a good number of gold bars while still retaining a good chance of actually getting them?