Answer:
Explanation:
From the information given:


The characteristic of the comparison is a uniform distribution.
Since there are three categories from the data, then: the data obeys a U(0,3) distribution. However, supposed it happened that different food had the same appeal, thus, there will be uniform distribution in the preference score.

At 0.05;
Thus, at 0.05 and df of 2, the cutoff sample score at which
will be reject is the critical value

Prefered Observed Expected Expected (O - E) (O - E)²/ E
frequency frequency proportions
Cup cakes 16 20 0.333 -4.00 0.800
Candy bars 26 20 0.333 6.00 1.800
Dried apricots 18 20 0.333 -2.00 0.200
Total 60 20 1 -2.00 2.800
Thus the sample score is

Decision rule: To reject the null hypothesis if the observed test statistic is higher than the critical value.
Conclusion: We fail to reject the null hypothesis and conclude that different foods have the same appeal to different people.