On one side, to place 1st rock, he had to travel 10m. For 2nd rock he had to travel 20m. Similarly, till last rock he had to travel 400. Total sum would be 10+20+30+...+400=
40
2
(410)=8200. Similarly, on the other side it will be 8200. Total 8200+8200=16400.