In a given circuit as shown the two input waveforms A and B are applied simultaneously. The resultant waveform Y is