The probability of selecting a pencil of a certain color is given by the amount of pencils of that color over the total number of pencils.
Knowing that, let's first calculate the total number of pencils:
[tex]4+3+3=10[/tex]Then, the probability of selecting a blue pencil is:
[tex]P(B)=\frac{3}{10}[/tex]And the probability of selecting a yellow pencil is:
[tex]P(Y)=\frac{3}{10}[/tex]Now, to calculate the probability of both events happening, we just need to multiply the probabilities of each event:
[tex]P(B\text{ and }Y)=P(B)\cdot P(Y)=\frac{3}{10}\cdot\frac{3}{10}=\frac{9}{100}=0.09[/tex]So the probability is 0.09 or 9%.