Most rock gypsum is formed by the

a chemical precipitation of minerals from seawater

b heating of previously existing foliated bedrock

c cooling and solidification of lava

d compaction and cementation of shells and skeletal remains