Let the coordinates of a point P on the line x+y=5 be P(h,k).
Given, that P is at a distance of 3.5 units from 6x+8y+1=0 distance of a point (x1y1) from a line ax+by+c=0 is given by
d=∣∣
∣∣ax1+by1+c√a2+b2∣∣
∣∣⟶(1)
Using equation (1) we can write
3.5=6h+8k+1√62+82=6h+8k+1√100=6h+8k+110
∴ 6h+8k+1=35
6h+8k=34⟶(2)
Now P(h,k) lies on x+y=5 line, hence
h+k=5⟶(3)
Solving (2) & (3) simultaneously
Eqn (2)×1⇒6h+8k=34
Eqn(3)×8⇒8h+8k=40–––––––––––––––––––––––––––––––
(Subtracting) −2h=−6
h=3
and k=2
∵ the corodinates of P are (3,2)