n(S)=30C2
Let A be the event of getting two apples and
B be the event of getting two non-defective fruits.
And (A∩B) be the event of getting two non-defective apples(20−5=15 non−defective apples)
P(A)=20C230C2
P(B)=22C230C2
And P(A∩B)=15C230C2
∴P(A∪B)=P(A)+P(B)–P(A∩B)
=20C230C2+22C230C2−15C230C2
=526435