drawing a circuit, nand gates
You want to write your expression using boolean algebra, then convert it (if necessary) using DeMorgan's theorem to a form that you can implement using NAND gates. For example, say you have A + B (A or B). This becomes:

A + B (starting equation)
(A'B')' (DeMorgan's format)

You can easily implement (A'B')' using one NAND gate for the purpose of the inverted AND (as expected), and 2 more NAND gates as inverters for A and B.

Use this algorithm with any equation you have in order to get it in terms of NANDS, ANDs (NANDs plus one more NAND after it to invert it), or NOTs (use single NAND to invert)