The length, breadth and height of a room are \(18\) \(m\) \(40\) \(cm\), \(10\) \(m\) \(60\) \(cm\) and \(14\) \(m\) \(80\) \(cm\), respectively. Using prime factorisation, find the longest rod which can measure the three dimensions of the room exactly.