An army of soldiers is marching down road at 5 mph. A messenger on horseback rides from the front to the rear and returns immediately, the total time taken being 10 minutes. Supposing that the messenger rides at the rate of 10 mph, find out the distance from the front to the rear.