Xét tam giác ABC vuông tại A ta có:
\(AC=\sqrt{BC^2-AB^2}=\sqrt{20^2-12^2}=16\left(cm\right)\)
\(\Rightarrow\left\{{}\begin{matrix}BH\cdot BC=AB^2\\HC\cdot BC=AC^2\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}BH=\dfrac{AB^2}{BC}=\dfrac{12^2}{20}=7,2\left(cm\right)\\HC=\dfrac{AC^2}{BC}=\dfrac{16^2}{20}=12,8\left(cm\right)\end{matrix}\right.\)