Grasshopper split trim brep

hi, I want to trim the brep inside the ramp by projecting the green overlap lines of the two brep vertically

4.gh (81.7 KB)

To run Trim Solid, the extruded object must be closed, so I will need to run the sub curve command, but I do not know how to extract the curve

Please let me know if there is a way to trim the inner brep into a vertically extruded shape with a sub curve or another way.