Slope of the line, x−y=5 is,
m=1
Parallel lines have equal slope.
Let the equation of the line passing through (2,3) and parallel to the line y=x−5 is,
y=mx+c
y=x+c
3=2+c
c=1
⇒y=x+1
Now, the intersection point of y=x+1 and 2x+y+6=0 or y=−2x−6 is,
⇒(−73,−43)
Therefore, distance between (2,3) and (−73,−43) will be
⇒√(2+73)2+(3+43)2=13√169+169=13√23 units
Hence, this is the required distance.