Merge surfaces (trim and untrim) sharing same edge

Also this looks like a pretty simple surface. Can you not generate the upper and lower edges as single curves and make a Ruled surface between them?