Combining like terms with distributive property in two expressions