Which statement best describes the composition of magma?
a. Magma is an element all its own.
b. Magma contains the same elements as snow.
c. Magma contains only three elements.
d. Magma contains the same elements as Earth's crust.