Answer :
Density is equal to mass divided by volume so the densest object will be the object that has the largest mass in the smallest area.
In this case object A is the densest with a density of 10g/cm^3.
I hope this helps. Let me know if anything is unclear.