Question 189940
First group them into two groups:

(7q^2 - 7q) + (5pq - 5p)


Factor individually:

7q (q - 1) + 5p (q - 1)


And you're done :)