Answer :
The given equation is
[tex]y=-x+5[/tex]This equation shows a slope of -1, which a perpendicular line would have a slope of 1 because perpendicular slopes are opposite and reciprocal as 1 and -1 are.
Then, we use the point-slope formula to find the equation
[tex]y-y_1=m(x-x_1)[/tex]Where,
[tex]\begin{gathered} m=1 \\ x_1=2 \\ y_1=4 \end{gathered}[/tex][tex]\begin{gathered} y-4=1(x-2) \\ y=x-2+4 \\ y=x+2 \end{gathered}[/tex]