\(\left(a+b+c\right)\left(a+b-c\right)+\left(a+c+b\right)\left(a+c-b\right)+\left(a+b+c\right)\left(a+c-b\right)\)
\(=\left(a+b+c\right)\left[\left(a+b-c\right)+\left(a+c-b\right)+\left(a+c-b\right)\right]\)
\(=\left(a+b+c\right)\left(a+b-c+a+c-b+a+c-b\right)\)
\(=\left(a+b+c\right)\left(3a-b+c\right)\)