The distributive law states that:
X ⋅ (Y + Z) = (X ⋅ Y) + (X ⋅ Z)
If you consider the ⋅ operator as multiplication, and the + operator as addition, this is equivalent to expanding the brackets or factorisation (depending on which way you are working) in normal algebra.
X + (Y ⋅ Z) = (X + Y) . (X + Z)
This is not like in normal algebra!