Searching for values in list "A" and "B"

Ні!I want to find a match between two lists. The task is to analyze list “B”, find in it those values ​​that correspond to list “A” and substitute the values ​​from list “B” into list “A”. I tried to do this through the “Match Text” node, but it only works when there is one branch from list “A”. When there is more than one branch in list “A”, the “Match Text” node does not correctly substitute the values ​​from list “B” Please tell me how to fix this? Thank you!

Please upload your .gh file with data internalised.

https://discourse.mcneel.com/t/help-us-help-you/50034/10

Searching for values in list “A” and “B”

This is the result I would like to get

Pretty please?
-wim