Find root from pairs