Two spherical planets P and Q have the same uniform density ρ