I would greatly appreciate if someone could explain this to me!

Remember that, in general, a quadratic equation can be written as:
[tex]ax^2+bx+c[/tex]In our problem, we already have the values of a and b, c is the missing value. When this happens, that a and b are given, the value of c is equal to:
[tex]c=(\frac{b}{2})^2[/tex]Therefore, the missing value in the problem is:
[tex]\begin{gathered} b=-2 \\ \Rightarrow c=(-\frac{2}{2})^2=(-1)^2=1 \\ \Rightarrow c=1 \end{gathered}[/tex]Thus, the answer is 1
We can easily verify that this answer is correct as follows:
[tex]x^2-2x+1=(x-1)(x-1)=(x-1)^2[/tex]