The mass of sample = 10 g
Further explanation
Density is a quantity derived from the mass and volume
Density is the ratio of mass per unit volume
The unit of density can be expressed in g/cm³ or kg/m³
Density formula:

ρ = density , g/ml
m = mass , g
v = volume , ml
Density is 5 g/ml and sample is 2 ml,so :
ρ = 5 g/ml
V = 2 ml
The mass :
