# Question 32d83

Since you do not have a volume expressed in your equation, I'll assume you mistyped it. The mass of the substance is expressed in grams, which can be used for density, but $\text{cm}$ cannot be used since it represents a unit of length.
A proper unit for volume would be ${\text{cm}}^{3}$, which would make your equation
rho = ("24 g")/("8 cm"^3) = "3 g/cm"^3#
This means that a cube with the dimensions $\text{1 cm x 1 cm x 1 cm}$ filled with your substance weighs $\text{3 grams}$.