Answer: (a) Refer to picture attached
(b) Probability that randomly selected student in class 1 prefers comedies is 42%
(c) Probability that randomly selected student in class 2 prefers action movies is 29%
Step-by-step explanation: Please refer to the picture attached for the required two-way table.
For the first class, that is class 1, you need to calculate the probability that a randomly selected student prefers comedies. A probability can be expressed as follows;
P(comedies) = Number of required events / Number of possible outcomes
P(comedies) = 13/31
P(comedies) = 0.419354
Therefore the probability that a student selected randomly from Ms Peter's first class prefers comedies is 0.4193 (approximately 0.42) or 42%.
For the second class, that is class 2, you need to calculate the probability that a randomly selected student prefers action movies. The probability thus is expressed as;
P(Action) = Number of required events / Number of possible outcomes
P(Action) = 9/31
P(Action) = 0.290322
Therefore the probability that a student randomly selected from Ms Peter's second class prefers action movies is approximately 0.29 or 29%.