Comparison of elements by parameters and entering the value of a parameter from one element to another

Hello!

I need to compare two parameters of different categories of elements and filter those elements where the values of the parameters coincided. Then, in the filtered pairs of elements, transfer the value of one parameter of the element to the parameter of another element

The image is about what I want to get.
I experiment with lists and dictionaries, but my knowledge is not enough…
I would be grateful for an answer or a link to useful information on the topic

The easiest option is probably to make a combined list of elements and a combined list of parameter values then use GroupByKey to group the elements by parameter value. Then you can get and transfer the second parameter value.