What is the length of CD? In this diagram,
ABC ~ EDC.

Hey there!
Answer:
CD = 3.
Step-by-step explanation:
Since the triangles are similar, we can set up a ratio to determine the other side-lengths:
[tex]\frac{12-x}{18} =\frac{x}{6}[/tex]
Cross multiply:
[tex]6(12-x) = 18x[/tex]
Distribute the '6':
[tex]72-6x = 18x[/tex]
Combine like terms and simplify:
[tex]72 = 24x[/tex]
[tex]x = 3[/tex]
Therefore, the length of CD is 3.