You are given
P(Y) = 0.3 for yellow
P(G) = 0.1 for green
P(B) = 0.6 (= 1 - 0.3 - 0.1) for blue.
(A) P = P(Y)*P(Y) + P(G)*P(G) + P(B)*P(B) = = 0.46. ANSWER
(B) This probability is the probability to point to
(Y,G) or (G,Y);
or (Y,B) or (B,Y);
or (Y,Y),
and is equal thus to 2*0.3*0.1 + 2*0.3*0.6 + 0.3*0.3 = 0.51. ANSWER