Evaluate logical expression with a couple NAND gates
Following up on @Dave Tweed, we can simplify the logical expression to

OUT = AB + BC + AC


Using DeMorgan's this again is equivalent to:

OUT = (AB)'' + (BC)'' + (AC)
OUT = ((AB)' (BC)')' + (AC)


This as it is, can easily be converted to a logic circuit that uses 2-input NAND gates







simulate this circuit &ndash; Schematic created using CircuitLab