How can we solve the equation if product of two terms is zero