Find the equation that results from completing the square into the following equation X squared -14 X +40 equals zero

Given:
The equation is
[tex]x^2-14x+40=0[/tex]Required:
Find the equation that results from completing the square into the given equation.
Explanation:
The given equation is:
[tex]x^{2}-14x+40=0[/tex]Subtract 40 on both sides.
[tex]\begin{gathered} x^2-14x+40-40=0-40 \\ x^2-14x=-40 \end{gathered}[/tex]Add 49 on both sides.
[tex]\begin{gathered} x^2-14x+49=-40+49 \\ x^2-14x+49=9 \end{gathered}[/tex]Use the following formula:
[tex]a^2-2ab+b^2=(a-b)^2[/tex][tex](x-7)^2=9[/tex]Final answer:
The second option is the correct answer.