I have a problem that requires me to simplify some logic.

The problem is (¬p ∧ q) ∧ (¬q ∨ ¬r)

I thought about distributing everything but there are different signs (^ and v) in the individual parentheses so I'm not sure how to multiply those together. If it was (¬p ∧ q) ∧ (¬q ∧ ¬r) I would've been able to simplify it.

The answer is ¬p ∧ q ∧ ¬r