Presumably you are allowed to dump coal along the way and pick it up later. You will leave $A$ three times, so will come back to $A$ twice. The first depot should be where five trips burn $3000$ coal so you can leave twice going forward. That means the first depot is $600$ km in and when you leave from there outbound the first time there is $3000$ on the ground and $3000$ on the train. You want to leave the second depot with the train full and will make three trips between the first and second, so they should be $1000$ km apart. You leave the second depot with $3000$ and burn $1400$, arriving with $1600$.