Use Bayes' rule to make your working more readable, let's use $R$ to denote the event that an apple is rotten.
$$P( C | R) = \frac{P(C)P(R|C)}{P(R)}=\frac{P(C)P(R|C)}{\sum_{i \in \\{ A,B,C\\}}P(i)P(R|i)}$$
Use Bayes' rule to make your working more readable, let's use $R$ to denote the event that an apple is rotten.
$$P( C | R) = \frac{P(C)P(R|C)}{P(R)}=\frac{P(C)P(R|C)}{\sum_{i \in \\{ A,B,C\\}}P(i)P(R|i)}$$