Which type of rock is formed when layers of rock particles, carried by wind and water, are compressed and cemented together?

A. metamorphic

B. sedimentary

C. igneous