Which of the following are ways magma is formed? a. by compaction and cementation b.by melting and cooling c. by weathering and erosion