That takes time and experience. For instance, you don’t usually want too much “musical information” clashing in your mix – best that one tune has just the drums, maybe, and the other one has the melodies (bass, vocals etc). There are also questions of musical key, energy level, style/genre, the exact point you choose to mix and so on.