There are n white balls in the urn.
Probability of Mr. Roushan to draw two balls of same color is 3C2+nC2n+3C2
⇒6+n(n−1)(n+3)(n+2)=12 (given)
⇒n2−7n+6=0
⇒n=1or6⋯(i)
Also required probability for Mr. Rajesh according to the question is
3n+33n+3+nn+3nn+3=58 (given)
Solving, we get
n2−10n+9=0⇒n=1or9⋯(ii)
From (i) and (ii), we get
n=1