A cube is cut into x smaller cubes each of volume 8cm3. If volume of the entire cube is 512 cm3, then find the value of 'x'.