The attached diagram is an interpretation of the question.
If there are other details, please post.
The distance AD is found by Pythagoras theorem, with
AD=sqrt(BC^2+(AB-DC)^2)=sqrt(21^2+2^2)=sqrt(441+4)=sqrt(445)
=21.095 (to the third decimal place)