Help with the walls/roof

I am wanting to extrude my wall curves but have them stop where the roof intersects with it. I have tried to boolean and just straight up trim but it keeps messing up. Any tips?

Rhino Wall Questions.3dm (2.5 MB)

Is this what you wanted?

I joined the green roof to a polysurface an trim with the long wall. The sorter one gave a little bit of a problem so I used the intersect command and split the wall with the curve and then deleted the top part.

Rhino Wall Questions.3dm (2.6 MB)