Answer:
(q + 1)(q + 5p)
Step-by-step explanation:
q² + q + 5pq + 5p
= (q² + q) + (5pq + 5p)
Consider that : q² + q = q(q + 1) and 5pq + 5p = 5p(q + 1)
then
q² + q + 5pq + 5p
= (q² + q) + (5pq + 5p)
= q(q + 1) + 5p(q + 1)
= (q + 1)(q + 5p)
Good luck :)