Density is always (mass)/(volume).
For the piece of material you've got there, the density is
(50 grams)/(5 cm^3).
6.7m questions
8.8m answers