Question: Beans and coal both have stored energy. Where did the energy come from that is stored in beans and coal?

What is the correct answer to the question from the following choices?
From the Sun's light