Using Boolean logic, an AND gate can be constructed by combining NAND gates as follows: \[ {AND}(A,B) = {NAND}({NAND}(A,B), {NAND}(A,B)) \] This means the output of a NAND gate is fed into another NAND gate acting as an inverter, which results in AND operation.
The second circuit (Option B) shows this correct configuration.