For this case we have that by definition, the density is given by:

Where:
M: It is the mass of the diamond
V: It is the volume of the diamond
According to the data of the statement we have:

So the volume is:

Thus, the volume of the diamond is approximately 
Answer:

Answer
1/2+2×(sqrt3)^2+x.(sqrt3/2)^2=8+1^2+1/2
1/2+2×3+x.3/4=8+1+1/2
1/2-1/2+6+x.3/4=9
x.3/4=9-6
x.3×4=3
x.3=3×4
x.3=12
x=12/3
x=4.
so, the value of x is 4.
hope it helps you.