Let, CD =x cm
Then from Δ ADC, using Pythagoras theorem ,
AD2+CD2=AC2
⇒AD2+x2=32
⇒AD2=(9−x2).........(1)
In Δ ABD , using Pythagoras theorem,
AB2=BD2+AD2
⇒82=(6+x)2+(9−x2)[Using equation (1)]
⇒64=36+x2+12x+9−x2
⇒12x=64−45
⇒x=1912
∴CD=1912 cm=1.58¯¯¯3 cm