Submergence of magnetic flux in interaction of sunspot groups