Pergunta de entrevista da empresa Tatari

Provided 2 spreadsheets, merge them based on different criterias