Numerical simulation of wave resonance in the narrow gap between two non-identical boxes