There are 16 pencils
4 are green
3 are yellow
4 are red
3 are blue
2 are orange
To determine the probability of randomly choosing a yellow pencil and a red pencil, you have to apply the theorem of the product of probabilities:
Since Juan puts back the first pencil before taking the second one, both events "yellow" and "red" are independent.
The individual probabilities for both events can be calculated as the quotient between the number of pencils of each color and the total number of pencils:
Then the probability of selecting a yellow pencil and then a red pencil can be determined as follows: