John took a drive to town at an average rate of 40 mph in the evening he drove back at 30 mph if he spent a total of seven hours traveling what is the total distance traveled by John