Let there be 2n+1 stones. So, there will be n stones each side of middle stone.
If the person started the job from middle,
The distance covered for first stone
=2×10 m
Similarly, distance covered for second stone
=2×20 m
So, the distance covered in bringing stones to centre from one side
=2[10+20+30+⋯+10n]
Distance covered in bringing stones from both sides
=4[10+20+30+…10n]
Since, the person started from one end, the total distance covered
3000=4[10+2×10+3×10+...+n×10]−n×10⇒40[1+2+3+...+n]−10n=3000⇒4×n(n+1)2−n=300⇒2n2+n−300=0⇒(2n+25)(n−12)=0∴n=12 (∵n∈N)
Hence, number of stones is 2n+1=25.