Guaranteed to finish top two with win.
To finish top two with draw we need at least three of the following to happen:
Lyon lose vs PAOK
Freiburg fail to win at Lille
Midtjylland fail to win vs Dinamo Zagreb
Braga fail to win at Go Ahead Eagles
Braga win by exactly one goal and score fewer goals than Villa in their final game (eg we draw 2-2, they win 1-0)
To finish top two with defeat we need at least five of the following to happen:
Lyon lose vs PAOK by at least four more goals than we lose
Freiburg lose at Lille
Midtjylland fail to win vs Dinamo Zagreb
Braga fail to win at Go Ahead Eagles
Roma fail to win at Panathinaikos
Ferencvaros fail to win at Nottingham Forest
Ferencvaros win by exactly by one goal, Villa lose by exactly one goal, Villa score two or more goals more than Ferencvaros (eg we lose 4-3, they win 1-0)
Ferencvaros win 1-0, Villa lose 3-2