Dear student,
we are given 7 good apples and 3 rotten apples, so total apples = 10
10 good oranges and 5 rotten oranges, so total oranges = 15
total fruits = 15+10=25
Now,let A be the event of getting an orange
let B be the event of getting a rotten fruit
therefore, probability that either both fruits chosen are rotten or both are oranges will be: