A man walked a certain distance at a constant rate. If he had gone 1/2 mile per hour faster, he would have walked the distance in four-fifths the time; if he had gone 1/2 mile per hour slower, he would have been 5/2 hours longer on the road. How far did he walk?