After initiating the scoring, the Brazilian played a few minutes later to Federico Valverde who set 2–0 before the half-time whistle.
Gonzalo Garcia then established the final result towards the end of the match.
Real Madrid proceeds unbeaten to the playoffs with seven points out of nine possible.
Salzburg is eliminated. Saudi Al-Hilal won, at the same time, over already eliminated Pachuca from Mexico with 2–0.
Real Madrid and Al-Hilal will face Juventus and Manchester City respectively in the round of 16.