A crate contains 6 pears and x x\,x apples.
A person takes two pieces of fruit from the crate at random.
The probability that both pieces of fruit are apples is 12\displaystyle \frac{1}{2}21.
Work out the value of xxx.