Retrieve specific branchs with grafted item path

Hello all

Maybe someone will find this question simple, but I have been around for hours and do not understand the best way to do it.

I have two data of trees
one with 2999branch (noted A) with 24000 items
another with 25 branch (noted B) with 3000 items

I would like to retrieve specific branch (and item associate) on A with a tree branch path noted onB

I try to be clairer.
Exemple
Data A
branch 0 : item A, B, D
branch 1 : item C E
branch 2 : item F

Data B
branch 0, item 0
branch 1 ; item 1 2

I would like to retrieve an list like this

branch 0 item A B D
branch 1 item C E F

The branch components retrieve me a number of branch equal to the number of branch of A, but in my case i would like to have a number of branch equal to the number of branch of B

In my example i would like to find a data of 25 branchs with 24000 items
items who will be disptach by the item of the data B

I hope its clear… :slight_smile:

unnamed.gh (139.9 KB)

ok
solution solved !

if that can help other people who will have the same problem as me.
:grinning: