Theory
Density measures how much mass there is in each unit of volume. Density = mass ÷ volume. A mass in grams and volume in cm³ give density in g/cm³.
Rearrange the relationship as mass = density × volume, or volume = mass ÷ density. Write the formula you need before substituting numbers.
The units matter: 1 kg = 1000 g and 1 cm³ = 1 mL. Do not put kilograms into a calculation expecting g/cm³ without converting.
For a uniform solid, its total mass is density multiplied by its entire volume. If its shape is a cuboid, find volume = length × width × height first.
Check your result: at fixed volume, a denser material must have greater mass. Never confuse density with the object's total mass.