aExplanation: Y = CD + EF + GThe number of two-input AND gate = 2The number of two-input OR gate = 2.