ΔABC and ΔACD are similar. Therefore the sides are in proportion:
[tex]\dfrac{x}{4}=\dfrac{4}{2}[/tex]
[tex]\dfrac{x}{4}=2[/tex] multiply both sides by 4
[tex]\boxed{x=8}[/tex]