Answer: Part A = 
Part B = 12
Step-by-step explanation:
Given : Total number of classmate surveyed = 18
Proportion of people said yes ,they prefer granola bars over muffins = 0.66666667
Since 6 is repeating after decimal , so we can write this value as 
Let
(1)
Multiply 10 on both sides , we get
(2)
Subtract (1) from (2), we get

Divide 9 on both sides , we get

Thus , the required fraction in Part A = 
The number of students prefer granola bars over muffins will be :-

Hence, 12 students prefer granola bars over muffins.
Thus , the required answer for Part b = 12