If \(n\) number of cubes having the surface area 726 \(cm^2\) are joined at the edges to form a cuboid of area 2178 \(cm^2\), then find the value of \(n\) is ______.