The correct answer is option (d)- metamorphic rocks.
The metamorphic rocks are the rocks formed by the existing rock types by the process of metamorphism. The sedimentary, igneous or other metamorphic rocks can undergo transformation due to the effect of the heat and pressure.
Hence, the sandstone and the basalt under constant heat and pressure, result in the formation of the metamorphic rocks.