设AC=9X,AB=40X
由勾股定理,AC^2+BC^2=AB^2
所以81X^2+1600X^2=40025
x^2=40025/1681
X=√40025/1681
AC=9√40025/1681
BC=40√40025/1681