Line is x−3cos(3π/4)=y−4sin(3π/4)=r, say
or x−3−1/√(2)=y−41/√(2)=r
Its equation is x−3=−(y−4)
or x+y−7=0.
Any point on it is (−r/√(2)+3r/√(2)+4)
Since the two points are at a distance √2 from P on opposite sides,
hence choosing r=±√2, we et the points as
(−√(2).1/√(2)+3,√(2).1/√(2)+4)
and (√(2).1/√(2)+3,−√(2).1/√(2)+4)
or (2,5) and (4,3)