We study the conductance of a tunneling junction with two resonant imp
urities. We show that when the distance between the impurities is of t
he order of the de Broglie wavelength of an electron in the contacts,
the coupling of the impurity states via the continuum of states in the
contacts becomes important. If two identical impurities are located i
n the middle of the barrier, the resonant peak in the conductance, as
a function of the Fermi energy, is dramatically narrowed. The resonant
peak transforms into a deep minimum if impurity states have different
energies or if impurities are shifted from the middle of the barrier.
With nonvanishing overlap of the impurity wave functions, the positio
n of the minimum is shifted from the resonance. We also study two-chan
nel resonant tunneling between the edge states in the quantum Hall geo
metry. We show that for perfect resonance the coupling between the edg
e states is nonzero only within a narrow interval of magnetic fields.