Ответ:

16g(p+3)−p−3 = 16g(p+3)−(p+3) = (p+3)(16g-1)