(a) The left half acts as NOR gate and the right half as NOT gate.
Output from left half for inputs A and B is ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯A+B
This output is fed in the right half to produce ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯A+B=A+B
Hence the combination acts as OR gate.
(b) The two left halves act as NOT gates.
Thus the outputs from the two gates are ¯¯¯¯A and ¯¯¯¯B
They are fed into the NOR gate.
Thus Y=¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯A+¯¯¯¯B=¯¯¯¯¯¯¯¯A.¯¯¯¯¯¯¯¯B=A.B
Hence the combination acts as AND gate.