There are 25 red or green balls in a bag. Two are simultaneously selected at random. The probability of selecting two balls of the same color is the same as the probability of selecting two balls of different color. How many red balls are there in the bag?
I've tried:
$r + g = 25$
$P((r \cap r) \cup (g \cap g))=2P(r \cap g)$
$\therefore r^2+g^2=2rg \implies (r + g)^2 = 4rg\therefore 4rg=25^2=625\impliedby r+g=25$
$4rg=625$
$4r(25-r)=625\implies 4r^2-100r+625=0$
However, this gives me the answer $12.5$, which is clearly not correct.
What did I do wrong?