If the lengths of the bases of a trapezoid inscribed in a circle are 10 and 20, and the length of one of the legs is sqrt(89), find the length of one diagonal.