What is the primary function of mucus in the human respiratory system?
A. To facilitate the absorption of nutrients
B. To trap and remove foreign particles and microorganisms
C. To regulate body temperature
D. To increase the efficiency of digestion