Stuck with this List/branch matching case

I have 2 sets of data (the crv components in my screenshot below) which I need to combine in a specific way. I want to put the items on a specific branch, for which I have the branch numbers. So this is what I currently have:

And this is what I want to achieve after combining the two sets of data:

Anybody that can point me in the right direction?
190326 BranchMatch.gh (12.3 KB)

Try to use Replace Paths.


190326 BranchMatch_re.gh (12.4 KB)

1 Like

1 Like

Thanks @Rickson & @HS_Kim!