World Bank Group Interview Question

How would you merge these two datasets in R?