Answer: The main mechanism through which the layering happened is gravity: it pulled the heavier, denser material to the center, leaving the less dense material on the surface. The material that was on the outside cooled quicker, but this was the result, not the cause.
Step-by-step explanation: