Triangle ABC was dilated and rotated to form triangle DEC.

Triangles A B C and D E C. Side A C is x and side B C is 8. Side E C is 5, side E C is 7.8, side C D is 6.

What is the length of side AC? (Figures not drawn to scale.)