The formula for calculating the density of an object is D=-, where m is mass and v is volume.
m
Rewrite the formula in terms of m. Then rewrite the formula in terms of v.