When two waves in the same medium hit each other, the resulting displacement of the medium is
It is the sum of the displacements of each wave.
This is called the Principle of Superstition. It is that when two waves hit each other, the resulting displacement is the sum of the displacements of the two waves.