How to join two closed polysurfaces?

I cannot join 2 surfaces… It’s gonna be a ring, offset and solid…
Anyone has an advice what to do?

curvysquaresignet.3dm (882.6 KB)

First step is to modify surfaces with edges which are not next to each other so that the edges are next to each other. That will require exploding the polysurfaces and editing individual surfaces.