Pregunta de entrevista de Lloyds Banking Group

How would you join these two tables