The slope of the line x−y+1=0 is 1.
So, it makes an angle of 45o with x− axis.
The equation of a line passing through (2,3) and making an angle of 45∘ cos45∘x−2=sin45∘y−3=r
Coordinates of any point on this line are (2+rcos45∘,3+rsin45∘)
or (2+2r,3+2r)
If this point lies on the line 2x−3y+9=0,
then 4+2r−9−23r+9=0 ⇒r=42 Alternate Method
Since thepoint (2,3) lies on the line x−y+1=0. Therefore the distance from (2,3) to the line 2x−3y+9=0 along the line x−y+1=0 is equal to the distance between the points (2,3) and intersection point of 2x−3y+9=0 and x−y+1=0 ie, (6, 7).
Hence required distance d=(6−2)2+(7−3)2=32 d=42