A numerical study on matching relationships of gravity waves in nonlinear interactions