Final answer:
The density of the substance is 1.2 g/cm³.
Step-by-step explanation:
The density of a substance can be calculated using the formula, density = mass/volume. In this case, the mass is given as 6 grams and the volume is given as 5 milliliters.
To convert the volume from milliliters to cubic centimeters (cm³), we can use the conversion factor 1 mL = 1 cm³. Therefore, the volume is 5 cm³.
Substituting the values into the formula, we get density = 6 g / 5 cm³ = 1.2 g/cm³.