If Figure 4, the perimeter of isosceles trapezoid ABCD is 50. If BC=9 and AD=21, calculate the length of diagonal ¯¯¯¯¯¯¯¯AC.