7. a man having ten hours at his disposal made an excursion, riding out at the rate of 10 miles an
hour and returning on foot, at the rate of 3 miles an hour. find the distance he rode.