Question: airflow is a function of what two factors?
Answer: Air will flow from the region of higher pressure to that of lower pressure. Resistance of the airways also affects airflow. At higher resistance, there will be less air flow. Factors influencing resistance of airways include diameter of airway, presence of substances (like fluid or mucus) in the airway etc.