Box A contains 350 black stones and 500 white stones. Box B contains 400 black stones and 100 white stones. How many black stones and white stones must be moved from Box B to Box A so that 50% of the stones in Box A are black and 75% of the stones in Box B are black?