The most accurate response to how energy could have played a role in the different rock types forming would be:
d
Energy from different sources leads to different types of rock. Energy inside Earth melts rock into liquid rock, but energy from the sun causes rock to weather into small pieces of rock.
This response effectively captures the idea that different types of energy (such as geothermal energy from inside the Earth and solar energy from the sun) contribute to the formation and transformation of various rock types through processes like melting and weathering.