(i) Possible outcomes and tree diagram
Total pens = 3 (red) + 4 (black) + 2 (green) = 9 pens
Because the pen is replaced before your friend's turn, the total number of pens and the probability for each colour remain exactly the same for both picks.
The probabilities are:
P(Red)=93=31
P(Black)=94
P(Green)=92
Possible outcomes (sample space)
There are 9 × 9 = 81 total possible combinations, but they fall into 9 distinct colour pairings.
S = {(R, R), (R, B), (R, G), (B, R), (B, B), (B, G), (G, R), (G, B), (G, G)}
![Class 9 Maths [NCERT New Edition] The Mathematics of Maybe: Introduction to Probability Question 11](/_next/image/?url=https%3A%2F%2Fapi.supalearn.in%2Fstorage%2Fv1%2Fobject%2Fpublic%2Fimages%2F8a8ae49f-f539-40ab-926c-2f45a8488326-ch7-ex74-q2-pens-tree.png&w=3840&q=75)
(ii) Probability of picking the same colour
Think of the 9 pens as different pens. You can pick any of the 9 pens and, since the pen is put back, your friend can also pick any of the 9 pens. So there are 9×9=81 equally likely outcomes.
Outcomes in which both pens are of the same colour:
Both red: 3×3=9
Both black: 4×4=16
Both green: 2×2=4
Favourable outcomes =9+16+4=29
P(same colour)=Number of possible outcomesNumber of favourable outcomes=8129