In order to calculate for the density just divide the mass with the volume of the object. Since the problem states that it is a cube, the volume would just be the cube of the side length which is 8 cm^3. Then the mass which is 80 g would be divided with 8 cm^3. Thus the volume is 10 g/cm^3.