△ABH∼△CAH (g-g) \(\Rightarrow\dfrac{P_{ABH}}{P_{CAH}}=\dfrac{AB}{CA}=\dfrac{18}{24}=\dfrac{3}{4}\)
\(\Rightarrow AB=\dfrac{3}{4}CA\)
△ABC vuông tại A có: \(BC^2=AB^2+AC^2\Rightarrow BC^2=\dfrac{9}{16}CA^2+CA^2=\dfrac{25}{16}CA^2\)
\(\Rightarrow BC=\dfrac{5}{4}CA\)
△CAH∼△CBA (g-g) \(\Rightarrow\dfrac{P_{CAH}}{P_{CBA}}=\dfrac{CA}{CB}=\dfrac{CA}{\dfrac{5}{4}CA}=\dfrac{4}{5}\)
\(\Rightarrow P_{CBA}=\dfrac{5}{4}.P_{CAH}=\dfrac{5}{4}.24=30\left(cm\right)\)