given,
volume of sample of magnetite = 8cm^3
Density of sample of magnetite = 5g/cm^3
We know that ,
Density of sample = mass of sample/volume of sample
Now ,
Mass of sample = density of sample x volume of sample
Mass of sample of magnetite= 5g/cm^3 x 8cm^3 = 40 grams (g)