someone please help me understand how you expand and simplify brackets:(

please mark this answer as brainlist