This is from the controversial GCSE question in the UKs recent exams. The orginal question is thus:
There are $n$ sweets in a bag. $6$ of the sweets are orange, the rest are yellow.
Hannah takes at random a sweet from the bag and eats it. She then takes another sweet at random from the bag and eats it.
The probability that hannah eats two orange sweets is 1/3
a) show that $n^2 - n - 90 = 0$
This in itself isn't too difficult:
$$ \frac{6}{n}\frac{5}{n-1} = \frac{30}{n^2 - n} = \frac{1}{3} \Rightarrow \frac{90}{n^2 -n} = 1 $$ so that $$ n^2 - n -90 = 0 $$ But, what I'm trying to figure out is the value of n, the only way to do this I have thought of is trial and error, quickly finding the answer to be 10. Is there a different option here?