A rock has an initial volume of 10ml and a final volume of 20ml. The mass of the rock is 30g. What is the density of the rock?

How does the volume of a rock change? Think about that.

So I assume from displacement, the rock volume is 10ml
density=mass/vol=3g/ml