Rewrite $ p^{4}-49 $ as:
$$ p^{4}-49 = (p^{2})^2 - (7)^2 $$Now we can apply the difference of squares formula.
$$ I^2 - II^2 = (I - II)(I + II) $$After putting $ I = p^{2} $ and $ II = 7 $ , we have:
$$ p^{4}-49 = (p^{2})^2 - (7)^2 = ( p^{2}-7 ) ( p^{2}+7 ) $$