Rewrite 25p2 as (5p)2.
Rewrite 16q2 as (4q)2.
Check that the middle term is two times the product of the numbers being squared in the first term and third term.
Rewrite the polynomial.
Factor using the perfect square trinomial rule a2-2ab+b2=(a-b)2, where a=5p and b=4q.