I want to excerpt a specific cell out of this table:

based on entries made in another table:

So in this example, I want to excerpt the cell out of the first table which states "Medium". I already tried something with table transformer macro, but could not find a solution.