Which of the following processes is responsible for the compaction of sand grains into sandstone?

a) metamorphism
b) lithification
c) recrystallization
d) weathering