Taking into account the definition of density, the density of the sample is 0.5 [tex]\frac{g}{mL}[/tex].
It is necessary yo know that density is defined as the property that matter, whether solid, liquid or gas, has to compress into a given space.
In other words, density allows you to measure the amount of mass in a certain volume of a substance.
Then, the expression for the calculation of density is the quotient between the mass of a body and the volume it occupies:
[tex]density=\frac{mass}{volume}[/tex]
In this case, you know:
Then, replacing in the definition of density:
[tex]density=\frac{6 g}{12 mL}[/tex]
Solving:
density= 0.5 [tex]\frac{g}{mL}[/tex]
Finally, the density of the sample is 0.5 [tex]\frac{g}{mL}[/tex].
Learn more about density: