===== Answer ===== Player A should take 4 balls. This way, he can keep the number of balls left at the end of each round a multiple of 6. As long as the number of balls left on player A's turn is a multiple of 6, he can win.