Answer:2
Step-by-step explanation:
Given
Total bags=38
No of bags containing black pen is
![n\left ( A\right )23](https://img.qammunity.org/2020/formulas/social-studies/high-school/dxwm4eemwq49m4yz0i2hbnhuxhzs8bha6q.png)
No of bags containing blue pen
![n\left ( B\right )27](https://img.qammunity.org/2020/formulas/social-studies/high-school/58bnllro6f133ye84wjr7d36u11jdqykmd.png)
No of bags containing pencil
![n\left ( C\right )21](https://img.qammunity.org/2020/formulas/social-studies/high-school/kybrifw531o42vnathvic7u7sza4v3fz66.png)
no of bags containing both Black pen & blue
![n\left ( A\cap B\right ) 15](https://img.qammunity.org/2020/formulas/social-studies/high-school/qh4q984whaaerfst3gednvzezqis58psb8.png)
no of bags containing both Black pen & Pencil
![n\left ( B\cap C\right ) 12](https://img.qammunity.org/2020/formulas/social-studies/high-school/gu2c9vvwsgxdjajdyttcyrzj36pg7yldma.png)
no of bags containing both Blue pen & Pencil
![n\left ( A\cap C\right ) 18](https://img.qammunity.org/2020/formulas/social-studies/high-school/3yh5zrsp7df5afx3vnt3ivdgmetggeq478.png)
no of bags containing all
![n\left ( A\cap B\cap C\right ) is 10](https://img.qammunity.org/2020/formulas/social-studies/high-school/l4ja5nx178fu62bljkfmsxuzarwszm1200.png)
using Venn diagram
![n\left ( A\ \cup B\ \cup C\right )=n\left ( A\right )+n\left ( B\right )+n\left ( C\right )-n\left ( A\cap B\right )-n\left ( B\cap C\right )-n\left ( A\cap C\right )+n\left ( A\cap B\cap C\right )](https://img.qammunity.org/2020/formulas/social-studies/high-school/4f9p46r1cum3ltxmd98nogiw51mm99wbwi.png)
![n\left ( A\ \cup B\ \cup C\right )=23+27+21-15-12-18+10](https://img.qammunity.org/2020/formulas/social-studies/high-school/16zukpmogu4lkonl8my0qlkj38i7t3tk66.png)
![n\left ( A\ \cup B\ \cup C\right )=36](https://img.qammunity.org/2020/formulas/social-studies/high-school/eh022kqg74xd08vqz6k7uwozd85ggzotmo.png)
and we know
![n\left ( A\ \cup B\ \cup C\right )+n\left ( empty\ bag\right )=38](https://img.qammunity.org/2020/formulas/social-studies/high-school/ufktpe57bixzvqh6xotn1udark7sd5bbpy.png)
![n\left ( empty\ bag\right )=38-36=2](https://img.qammunity.org/2020/formulas/social-studies/high-school/dppj7hsy3fhbli3ph0n5z8hnyeivokgbvi.png)
Therefore there are 2 bags which are empty.