Domanda di colloquio di World Bank Group

How would you merge these two datasets in R?