Both diamond and coal are formed by changes in pressure and temperature below the Earth's surface. Which of these is a step in the formation of the minerals?

atoms break up in extreme heat

atoms are rearranged in materials

atoms combine in water to form solids

atoms of magma cool after a volcanic eruption