Two castings, a cube and a slab of the same material solidify under identical conditions. The volumes of the castings are equal but the slab dimensions are in the ratio of 1:2:4, find the ratio of the solidification times of the cube to that of the slab.