Astronomers have discovered a pair of neighboring planets with dissimilar densities orbiting very close to each other.