8. (10 points) In the inscribed quadrilateral $A B C D$, the degree measures of the angles are in the ratio $\angle A: \angle B: \angle C=2: 3: 4$. Find the length of $A C$, if $C D=12, B C=8 \sqrt{3}-6$.