# Ivy conducted a taste test for 4 different brands of chocolate chip cookies. Here is a two-way table that describes which cookie each subject preferre

Two-way tables
Ivy conducted a taste test for 4 different brands of chocolate chip cookies. Here is a two-way table that describes which cookie each subject preferred and that person's gender.
$$\begin{array}{c|cccc} &A& B & C & D \\ \hline Yes &4& 6 & 13 & 13\\ No &22& 11 & 11 & 14\\ \end{array}$$
Suppose one subject from this experiment is selected at random. Find the probability that the selected subject preferred Brand C.

2021-02-13
Given
$$\begin{array}{c|cccc|c} &A& B & C & D &Total\\ \hline Yes &4& 6 & 13 & 13&36\\ No &22& 11 & 11 & 14&58\\ \hline Total & 26 &17 & 24 & 27 & 94 \end{array}$$
We note that the table contains information about 94 people (given in the bottom right corner of the table).
Moreover, 24 of the 94 people prefer brand C, because 24 is mentioned in the row *Total” and in the column ”O” of the table.
The probability is the number of favorable outcomes divided by the number of possible outcomes:
$$P(C)=\frac{\# \text{ of favorable outcomes}}{\#\ \text{ of possible outcomes}}=\frac{24}{94}=\frac{12}{47}\approx0.2553=25.53\%$$
RESULT: $$\frac{24}{94}=\frac{12}{47}\approx0.2553=25.53\%$$