This practice is called counterpoint, a compositional technique in which different melodies are combined to create an harmonious whole.
9.5m questions
12.2m answers