4q2-7pq-4q+7p

Group the first two terms and the last two terms.

(4q2-7pq)-4q+7p

Factor out the greatest common factor (GCF) from each group.

q(4q-7p)-(4q-7p)

q(4q-7p)-(4q-7p)

Factor the polynomial by factoring out the greatest common factor, 4q-7p.

(4q-7p)(q-1)

Factor by Grouping 4q^2-7pq-4q+7p