Replacement elements in list with predefined elements from another


I am having some trouble trying to resolve the list login below.I’m interested if there is an effective way of doing it.
I have tried with Key Dictionary and replace by condition but not getting it to work, think I am missing something.
Thank you.

Dictionaries in Design Script is also a way to go…


Thank you for looking at this. Will try it today and let you know.