Calculate the total distance covered by a train before coming to rest if its initial…