Fran works due north of home. Her husband Juan works due east. By the time Fran is 5 miles from home the distance between them is one mile more than Juan's distance from home. How far from home is Juan?