Mass of the cube is 15 g and length of each side of the cube is 50.0 mm.
First calculate volume of cube as follows:

Here, a is length of each side of the cube.
Putting the value,

Now, density is defined as mass per unit volume, thus,

Putting the values,

Therefore, density of cube is
.