Answer
$5{p^2}q+p-5q$
Work Step by Step
The student did not use the distributive property correctly, therefore he did not simplify the expression in the right way.
The correct solution would be :
$3{p^2q}+2p-(5q+p-2p^2q)=3{p^2}q+2p-5q-p-(-2{p^2}q)$
$=3{p^2}q+p-5q+2p^2q$
$=5p^2q+p-5q$