How will Labour elect a new leader, and who has the advantage

Labour has two ways to elect a new leader, which one it chooses could decide the victor.