Density is mass per unit volume.
For the given material that has a mass of 44 grams occupying a volume of 6 cm^3, we divide the mass by the volume, i.e.
density of material = 44 grams / 6 cm^3 = 44/6 grams/cm^3 = 7.3 g/cm^3 (to two significant figures)