Rocks are made of minerals, and they are formed in different ways. According to the diagram above, how are metamorphic rocks formed?

A. Molten rock cools and turns solid.

B. Other rocks experience intense heat and pressure.

C. Wastes deposited by plants and animals decompose and weather.

D. Sand and other particles are buried, compacted, and cemented together.

According to the given information, metamorphic rocks are formed when other rocks experience intense heat and pressure. Therefore, option B is the correct answer.