A student made peanut butter bars by pressing a layer of graham cracker crumbs into a baking pan. Next, the student added a layer of a peanut butter mixture and then added a layer of crushed peanuts. Lastly, the student added a layer of chocolate frosting.

The process of making peanut butter bars is most like the formation of what type of rock?

Igneous

Metamorphic

Sedimentary

Magma