. How does changing volume change the density of an object?

Density = mass/volume

suppose: mass = 20

volume is 5 density = 4

volume is 10 density = 2

if the volume is larger than the density gets smaller.

However,the question might be asking something different - every object has its own given density and changing the volume doesn't change the density. It would change the mass, but not the density.