Region Intersection to create walls in grasshopper

I am trying to use grasshopper to create walls curves and I am having a really hard time figuring out how to “split” the curves to make the wall connect to each other.

This is the curves that I am working with, any grasshopper wiz that can help me create a definition to make this work to look like this?
The definition should be flexible to work with different angles of walls, there’s multiple curves in the definition below.

Added a small definition here to show how my data looks like.
Wall Curve Help.gh (5.2 KB)

Just going to reply to my own discussion real quick :wink:

Used Heteroptea’s “Overlay” node and that apperently worked for all my current use-cases.

For anyone wondering.