Question: what is (a+b)^2 equal to?
Answer: Squaring means multiplying an expression times itself: (ab)2 means (ab)(ab). But crucially, that's a whole bunch of multiplications. And we all know that you can regroup and rearrange items being multiplied at will (formally, we say that multiplication is associative and commutative).