Which of the options best describes the purpose of photosynthesis?

A) Store genetic information to pass onto offspring

B) Convert sunlight into chemical energy to produce a food (sugar)

C) Break down food sources to produce ATP