In the diagram, $\angle CAB = 90^\circ.$ Let $D$ be a point on $\overline{AB},$ and let $E$ be a point on $\overline{AC},$ such that $AB = AC = DE,$ $BD = 9,$ and $CE = 8.$ Find $DE.$

[asy] unitsize(3 cm);
pair A, B, C, D, E;
A = (0,0); B = dir(230); C = dir(230 + 90); D = 0.6*B; E = 0.8*C;
draw(B--A--C); draw(D--E); draw(rightanglemark(B,A,C,2));
label("$A$", A, N); dot("$B$", B, SW); dot("$C$", C, SE); label("$D$", D, NW); label("$E$", E, NE); [/asy]
Let $x=AB = AC = DE $ and apply the Pythagorean theorem ${AE}^2+{AD}^2={DE}^2$ to the triangle $ADE$, i.e.
$$(x-9)^2+(x-8)^2=x^2$$
which yields $DE=x=29$.