In the combination of the following gates the output Y can be written in terms of inputs A and B as