Melbourne have qualified for their first NRL grand final since 2020 after beating the Sydney Roosters 48-18 at AAMI Park.