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