Students observe that in the presence of sunlight, silver chloride (AgCl) will react and create chlorine gas (Cl2) and leave behind solid silver (Ag). Which of the following equations correctly models and balances this reaction and has the correct reaction type?

A. AgCl + sunlight → Cl2 + Ag (synthesis reaction)

B. 2AgCl + sunlight → Cl2 + 2Ag (decomposition reaction)

C. AgCl + sunlight → Cl2 + Ag (decomposition reaction)

D. 2AgCl + sunlight → Cl2 + 2Ag (synthesis reaction)