Example 23 : Using distributive law