This problem can easily be done by plotting the position of their houses into a co-ordinate plane. Srinivas lives in the 6th house of the 5th lane. This can be plotted to (6,5) Alok lives in the 2nd house of the 2nd lane. This can be plotted to (2,2) So, the distance can be found out by using distance formula ie, sqrt[ (x2 - x1)^2 + (y2 - y1)^2 ] = sqrt[ (6 - 2)^2 + (5 - 2)^2 ] = sqrt[ 16 + 9 ] = sqrt[ 25 ] = 5 units