Answer:
Planets have different layers because different materials have different densities.
Step-by-step explanation:
Density comes into play on how heavy matter is at a certain size. The planets formed as dust, gas, asteroids and comets collided together.Around the metal cores, the planets have a mantle and crust made of rock