Answer:
The null and alternative hypotheses are:
The bag of colored candies follows the distribution stated
The bag of colored candies does not follow the distribution stated
Under the null hypothesis, the test statistic is:

Where:
is the observed frequencies
is the expected frequencies
The calculation are done in the attachment

Now, we have to find the chi-square critical value at 0.05 significance level for df = n - 1 = 6 - 1 = 5. Using the chi-square table, we have:

Since, the chi-square test statistic is greater than chi-square critical value. Therefore, we reject the null hypothesis and conclude that the bag of colored candies does not follow the distribution stated.