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