S&P Global interview question

How to join two different tables.