'Filling a resultant table with corresponding values (row and column) from another table

I have this 2 tables below:

https://i.stack.imgur.com/e9Um6.png

Is there a library or some built-in function that fills up the second table matching row and columns from it, with the information on the first one?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source