Density can be calculated using the following rule:
density = mass / volume
Therefore,
volume = mass / density
For diamond:
we have mass = 0.5 grams and density = 3.51 g / cm^3
Substituting in the rule, we can calculate the volume of diamond as follows:
volume = 0.5 / 3.51 = 0.14245 cm^3
For graphite:
we have mass = 0.5 grams and density = 2.25 g / cm^3
Substituting in the rule, we can calculate the volume of graphite as follows:
volume = 0.5 / 2.25 = 0.2223 cm^3