Answer :

Because 5 goes into 5 AND 35, you can divide the expression by 5, which results in 5(p+7q). 
5(p+7) You take out the common factor of both numbers