Scientists found a planet 320 light-years away has a chemical makeup similar to its star. This confirms how planets form from the same material as their stars.