Question 335792
The distance from each to home are the legs of a right triangle.
The distance between them is the hypotenuse of the right triangle.
Use the Pythagorean theorem,
{{{5^2+X^2=(X+1)^2}}}
Take it from there and solve for X, Alan's distance from home.
Re-post if you get stuck.