Scientists have found two distinct families of planetary systems in the Milky Way. The discovery helps explain how planets form around stars.