I got
$$((p\wedge \neg r)\,\vee\, (\neg q \vee r))~\wedge~ ((q\wedge \neg r) \,\vee\, (\neg p \vee r))$$
but I don't know what to do next. I can't apply any laws here so I am really confused.
I got
$$((p\wedge \neg r)\,\vee\, (\neg q \vee r))~\wedge~ ((q\wedge \neg r) \,\vee\, (\neg p \vee r))$$
but I don't know what to do next. I can't apply any laws here so I am really confused.
First, the last term should be $\neg p \color{red}\lor r$, rather than $\neg p \land r$
Second, because $\lor$ is associative, you can drop some parentheses. So, for example, $(p \land \neg r) \lor (\neg q \lor r)$ can be written as $(p \land \neg r) \lor \neg q \lor r$
Third, you can use:
Reduction
$P \land (\neg P \lor Q) \Leftrightarrow P \land Q$
$P \lor (\neg P \land Q) \Leftrightarrow P \lor Q$
So, you get:
$((p \land \neg r) \lor (\neg q \lor r)) \land ((q \land \neg r) \lor (\neg p \lor r)) \Leftrightarrow \text{ (Association)}$
$((p \land \neg r) \lor \neg q \lor r) \land ((q \land \neg r) \lor \neg p \lor r) \Leftrightarrow \text{ (Reduction)}$
$(p \lor \neg q \lor r) \land (q \lor \neg p \lor r) \Leftrightarrow \text{ (Distribution)}$
$((p \lor \neg q) \land (q \lor \neg p)) \lor r \Leftrightarrow \text{ (Equivalence)}$
$(p \leftrightarrow q) \lor r$
$((p\wedge \neg r)\,\vee\, (\neg q \vee r))~\wedge~ ((q\wedge \neg r) \,\vee\, (\neg p \vee r))$
Commute and Reassociate
$(((p\wedge \neg r)\vee r)\vee \neg q)~\wedge~ (((q\wedge \neg r) \vee r)\vee \neg p)$
Distribute
$(((p\vee r)\wedge (\neg r\vee r))\vee \neg q)~\wedge~ ((q\vee r) \wedge(\neg r\vee r)\vee \neg p)$
Complementation and $\vee$ identity
$(p\vee r\vee \neg q)~\wedge~ (q\vee r\vee \neg p)$
Distribute
$r\vee((p\vee\neg q)\wedge(q\vee \neg p))$
$\to$ equivalence, and $\leftrightarrow$ equivalence
$\neg r\to (p\leftrightarrow q)$