Answer:
The pvalue of the test is 0.0007 < 0.01, which means that we reject the null hypothesis and accept the alternate hypothesis that the percentage of defective items produced by this machine is greater than 5%.
Step-by-step explanation:
A machine, when working properly, produces 5% or less defective items.
This means that the null hypothesis is:

Test if the percentage of defective items produced by this machine is greater than 5%.
This means that the alternate hypothesis is:

The test statistic is:

In which X is the sample mean,
is the value tested at the null hypothesis,
is the standard deviation and n is the size of the sample.
0.05 is tested at the null hypothesis:
This means that 
A random sample of 300 items taken from the production line contained 27 defective items.
This means that 
Value of the test statistic:



Pvalue of the test:
Testing if the mean is greater than a value, which means that the pvalue of the test is 1 subtracted by the pvalue of Z = 3.18, which is the probability of a finding a sample proportion of 0.09 or higher.
Looking at the Z-table, Z = 3.18 has a pvalue of 0.9993
1 - 0.9993 = 0.0007
The pvalue of the test is 0.0007 < 0.01, which means that we reject the null hypothesis and accept the alternate hypothesis that the percentage of defective items produced by this machine is greater than 5%.
1) Our marbles will be blue, red, and green. You need two fractions that can be multiplied together to make 1/6. There are two sets of numbers that can be multiplied to make 6: 1 and 6, and 2 and 3. If you give the marbles a 1/1 chance of being picked, then there's no way that a 1/6 chance can be present So we need to use a 1/3 and a 1/2 chance. 2 isn't a factor of 6, but 3 is. So we need the 1/3 chance to become apparent first. Therefore, 3 of the marbles will need to be one colour, to make a 1/3 chance of picking them out of the 9. So let's say 3 of the marbles are green. So now you have 8 marbles left, and you need a 1/2 chance of picking another colour. 8/2 = 4, so 4 of the marbles must be another colour, to make a 1/2 chance of picking them. So let's say 4 of the marbles are blue. We know 3 are green and 4 are blue, 3 + 4 is 7, so the last 2 must be red.
The problem could look like this:
A bag contains 4 blue marbles, 2 red marbles, and 3 green marbles. What are the chances she will pick 1 blue and 1 green marble?
You should note that picking the blue first, then the green, will make no difference to the overall probability, it's still 1/6. Don't worry, I checked
2) a - 2% as a probability is 2/100, or 1/50. The chance of two pudding cups, as the two aren't related, both being defective in the same packet are therefore 1/50 * 1/50, or 1/2500.
b - 1,000,000/2500 = 400
400 packages are defective each year
26.4 into fraction
26.4/1 * 100/100
2640/100
slash the zeros
264/10
simplify
132/5
turn it into a mixed fraction and you get
26 2/5