The correct option is B A: oxygen, B: carbon dioxide
During respiration, animals inhale oxygen and exhale carbon dioxide. Oxygen supports combustion. Hence gas A is oxygen.
Plants make their food by the process of photosynthesis. During this process, plants use carbon dioxide along with water to prepare their own food. Hence, gas B is carbon dioxide.