Rewriting gates such as XOR into three basic gates?
Hint:  $a \oplus b = \neg \big( (a \land b) \lor (\neg a \land \neg b)\big)$  (you can't have both true and you can't have both false).  Using De Morgan's, you should be able to break up the negation and the main $\lor$.