Through the point $A(4,5)$ a line is drawn inclined at $45°$ with the $+ve$ X - axis. It meets $x+y=6$ at the point $B$. Find the equation of $AB$.
My solution..
Equation of $AB$
$$(y-y_1)=m(x-x_1)$$ $$(y-5)=1(x-4)$$ $$x-y+1=0$$.
But the answer in my book is $3x-y=7$.
Can anyone tell me where I made mistake?.