The correct answer is all of these.
Matter and energy on Earth are never destroyed or created out of nothing, but just transferred or converted to another form.
The inorganic matter is transferred to the living things from the physical environment by many biological processes like photosynthesis ( CO2), nitrogen fixation, absorption of the minerals by plant roots and many more.
Matter can then be transferred between different organisms through the food chain.
Eventually, the matter will return to the physical environment when organisms decompose and the cycle will start again.