The average weight of the 10 lightest stones is 4% of the total pile weight. The 5 heaviest stones have an average weight of 5 %. The remaining unknown number of stones must have an average between those values. So: $$ 4<\frac{35}{n}<5 \text{ with } n\in\mathbb{N} $$ With $n=8$ you get the probability: $$ p=\frac{10}{10 + 8 + 5}=\frac{10}{23} $$