设高为AD,BD=X
则
10^2-X^2=17^2-(21-X)^2
(21-X)^2-X^2=17^2-10^2
(21-X+X)(21-X-X)=189
21*(21-2X)=189
42X=441-189=252
X=6