In the figure, if the area of the gray shaded region is $39\pi$ and the area of the green circle is $9\pi$, what will be the length of $AB$?