Take a look at the circuit diagram below and follow the inputs A and B through the circuit. Surely you recognize the EITHER ... OR logic at the output Q.
You already know all the C-MOS IC's you need for this circuit. Convince yourself that the circuit actually behaves like an XOR gate.
You still have not come to know all the gates. There is another group of logic gates to discover.