if foreach a and b is group G,(ab)2 =a2b2 ,show that G is abelian

(ab)^2 = abab

If abab = aabb then the middle ba = ab