In the given figure, AD is the external bisector of ∠EAC, intersects BC produced to D. If AB = 12 cm, AC = 8 cm and BC = 4 cm, find CD.