Final answer:
The density of the substance would be 2 grams per milliliter (g/ml).
Step-by-step explanation:
The density of a substance can be calculated by dividing its mass by its volume. In this case, the substance has a mass of 10 grams and a volume of 5ml.
To determine the density, we divide the mass (10 grams) by the volume (5 ml).
The density of the substance would be 2 grams per milliliter (g/ml).