A person travels home from work at a constant speed. Ten minutes after leaving work he is 20 miles from home, and 20 minutes after leaving work he is 12 miles from home. If he continues to travel at the same speed, how long will it take him to arrive home from work?