Problem- Calculate the empirical formula for each of the following natural flavors based on their elemental mass percent composition.
A)- nitroglycerin (used medically as a vasodilator to treat heart conditions): C 15.87%H 2.22%N 18.50%O 63.41%.
B)- vanillin (responsible for the taste and smell of vanilla): C 63.15%H 5.30%O 31.55%.
I want you to clarify the chemistry in this above problem.