Scientists have finally worked out where the most common kinds of planets come from.