A metal cube of an edge 12cm, is melted and recasted into three small cubes. If the edges of two small cubes is 6cm and 8cm respectively, then the edge of the third small cube is :