Here's a problem to solve: Marta was studying a diagram of the rock cycle. She wanted to know what could cause a sedimentary rock to become a metamorphic rock. Which processes must occur in order for a sedimentary rock to change into a metamorphic rock?

Among the 4 following options, which is the correct answer?

- A: compaction and cementation
 
- B: heating and pressure
 
- C: melting and cooling
 
- D: uplift and erosion
 