What is the length of CD in this diagram ABC ~ EDC

We are given that:
ABC ~ EDC
So equating ratio of equal sides:
[tex] \frac{BC}{CD} = \frac{AC}{CE} [/tex]
[tex] \frac{20-x}{x} = \frac{21}{7} [/tex]
[tex] 20-x =3x [/tex]
[tex] 20 =3x+x [/tex]
[tex] 20 =4x [/tex]
dividing both sides by 4,
x=5
Answer is length of CD is x which is 5. Option C
Answer:
C. 5
Step-by-step explanation:
Given the two triangles are similar, then its sides are proportional. In consequence the following relation must be satisfied:
BC/AC = CD/CE
Replacing with the given values and solving for x, we get
(20 - x)/21 = x/7
(20 - x) = 21*x/7
20 - x = 3*x
20 = 3*x + x
20 = 4*x
20/4 = x
5 = x