Place the steps in a volcanic island formation into the correct sequence

1. Tectonic plates collide or separate.

2. Magma rises and accumulates beneath the Earth's crust.
3. Volcanic eruption occurs, releasing lava, ash, and gases onto the surface.
4. Lava cools and solidifies, forming layers of volcanic rock.
5. Over time, repeated eruptions build up a cone-shaped mountain.
6. Weathering and erosion wear down the mountain, creating a flatter island.
7. Coral reefs and other marine life can colonize the surrounding waters, further shaping the island.