Hey there!
Here is your answer:
The proper answer to this question is "Earth, and Mercury".
Reason:
Mercury has a density of 5.427 g/cm³
&
Earth has a density of 5.515 g/cm^3
Therefore the dense planet is Earth.
If you need anymore help feel free to ask me!
Hope this helps!
~Nonportrit