By using a reverse signal at the same frequency, you can cancel both connecting at one node, we can also expand this to reality, by one frequency coming from a microphone and the other coming out from a speaker (of course the two areas need some sound resistence) and the result is no sound.