How to write Boolean Algebra of a CMOS circuit?
This is a latch, because of the feedback.
And timing, in the moderate picoseconds, will matter.
The A input serves as enable for Output Pulldown, when A is high; when A is low, the Output Pullup is allowed.