If we combine output of two NAND gates together we get a wired-AND gate which is also called AND-OR-INVERT function
((F =(AB+ CD)') and if we combine two NOR gates together we get wired-OR gate which is also called OR-AND-INVERT function i.e.,
F =[(A +B) (C +D)] '