You can put this solution on YOUR website! Never true. Using the foil method (First, Outer, Inner, Last)
F=a*a
O=a*b
I=a*b
L=b*b
This looks like this: a^2+ab+ab+b^2
Combine like terms:a^2+2ab+b^2
What your friend is probably talking about is called a perfect square trinomial which (a+b)^2=a^2+2ab+b^2.