The density of the cube is
The density formula is
You have been given the mass of the cube as
You have been given one side of the cube as
Now you have the data you need to determine the density of the cube.