As this is obviously a homework problem, I won't answer it.
However I will give you couple of hints. First figure out how to make an exclusive-or gate from nand gates. The rest is trivial. Using a Karnaugh map will make it much simpler to design than using an ordinary truth table.
Chat with our AI personalities