how do you find the lenght of a segment with given exponents?