Elementary Algebra

$(x+y)(n-2)$
As $n$ is common to the first two terms and $-2$ is common to the last two terms, we obtain: $nx+ny-2x-2y$ =$n(x+y)-2(x+y)$ =$(x+y)(n-2)$