Density can be calculated using the following rule:
Density = mass / volume
We are given that:
mass = 28.7 grams
volume = 5.74 cm^3
Substitute with these givens in the above equation to get the density as follows:
Density = 28.7 / 5.74 = 5 grams / cm^3