Assume I have two lists, for example the following:

```
list1 = {1, 2, 1, 3, 2};
list2 = {{1, a}, {3, c}, {2, b}};

```

I would like to compare each element of `list1` with the first column in `list2` and if there is a match, assign the element from column 2 of `list2` to the corresponding index in a third `list3`.

In this case, `list3` would looks like this:

`list3 = {a, b, a, c, b}`

I am rather new to Mathematica and I'm sure there is a function for exactly this, but I spent several hours with `Map`, `Thread` and similar functions and haven't found a solution yet.