We have the next expression:
Factorize using factor by grouping.
First, let's find the common terms. The one who is in all terms or majority terms.
In this case, let's use p:
Factorize the common term 6.
Look at the expressions, both are multiply by (q-r), so we can rewrite the expression like this:
Factorize the common term (q-r)