Nand Gates
You would go in on 1 and 2 out on 3 = 1 nand gate
in on 4 and 5 out on 6 = 1 nand gate
in on 12 and 13 out on 11 = 1 nand gate
in on 9 and 10 out on 8 = 1 nand gate
Pin 7 goes to GND and Pin 14 goes to +
These nand gates could also be tied together to form any other gate like the:
Inverter, AND, OR, NOR, XOR, and the XNOR.
You would need 5 nand gates to make 1 XNOR gate, the 7400 only has 4 nand gates so you would need one more nand gate to form the XNOR. Every other logic function gates can be made with 4 or less nand gates.
Matt