What do the inner planets and outer planets have in common