Answer :

hey there!:

Mass = 30 g

Volume = 10 cm³

Therefore:

Density = mass / Volume

Density = 30 / 10

Density = 3.0 g/cm³