A gold bar is in shape of a triangular prism,the height is 4,the volume is 216cm³, the lateral area is 288cm and the surface area is 312cm but if the bar is melted and all the molten gold is used to form a solid cube,what is the length of the side of the cube