So, I'm a bit stuck here and I don't see how I can continue. I needed to write the following expression to DNF:
$$((p \land q)\lor(q \rightarrow(p\land \lnot r))$$
What I tried:
$$((p \land q) \lor (\lnot q \lor (p \land \lnot r)))$$
$$((p\land q)\lor((\lnot q\lor p) \land (\lnot q \lor \lnot r)))$$
$$((p \land q) \lor ((\lnot q\lor p) \land \lnot(q \land r)))$$
And I'm stuck here. The answer is supposed to be $p\lor \lnot q$, which is what has gotten me surprised. What am I doing wrong?