find the solutions of 12 balls problem