One team wins both excellence and team

If one team wins both excellence and team who gets the additional spot to worlds? Is it skills, design, or judges?