Subject: mathqa
Question: a group of people participate in some curriculum , 30 of them practice yoga , 20 study cooking , 15 study weaving , 5 of them study cooking only , 8 of them study both the cooking and yoga , 5 of them participate all curriculums . how many people study both cooking and weaving ?
Option: 
A: 4
B: 5
C: 1
D: 2
Answer: D