If the cubes completely fill the box then to hold twice as many cubes you will need twice the volume. Are the dimensions required to be integer? Since the dimensions of the first box are integers, it is impossible to have a box of twice the volume with integer sides. But depending on the size of the cubes, you may not be able to completely fill the box. What are the dimensions of the cubes?