The best response to explain how energy has played a role in the formation of different rock types is:
a 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 option effectively describes how energy from different sources (internal heat from the Earth and solar energy) leads to the formation of distinct rock types. It highlights the processes involved in the rock cycle, namely melting and weathering, and acknowledges that the type of energy influences the resulting rock forms.