Two poles of heights \(5 \ m\) and \(10 \ m\) stand vertically on a plane ground. If the distance between their feet is \(12 \ m\), what is the distance between their tops?