Question: where did the elements that formed planets come from
Answer: from the solar nebula , the disc - shaped cloud of gas and dust left over from the Sun 's formation