No simple really, just look at who is more likely to go after who. Link would fight Ganondorf, Link would win he always does. Xemnas and Sora would probally fight, Sora would win. Riku and Ansem would fight and Riku would win. Now that would leave Link and Riku to team up on Sora and take him out.