They formed when the magma chamber cooled and froze.
(They; formed; T:when the magma chamber cooled and froze) (the magma chamber; cooled; )
They the magma chamber
formed cooled
T:when the magma chamber cooled and froze