A person travels to a destination at a rate of 50m/h and returns the next day at a rate of 40m/h. If the time returning is 1hour more than the time going, how many miles are traveled in all?