Density is too do with how much of a mass is condensed or concentrated in a unit of volume: Density = Mass / Volume
So applying it to the given data:
10/2 = 5
Density is 5 g/ml
[ml is usually the equivalent of one cm³, so it could also be written as 5 g/cm³ I guess]