Pergunta de entrevista da empresa Jobcase

How would you join these two tables? (In SQL)