The density of a substance refers to the relationship between the mass of the substance and its volume. Mathematically, density is written as: P = Mass / Volume.
Thus, for a substance that has a mass of 95 g and a volume of 18 cm3;
P = 95 / 18 = 5.27
Therefore, P = 5.3 g/cm3[gram per cubic centimeter].