Step 1 :
Factor out common factor $ \color{blue}{ 8 } $:
$$ 8x^2-72p^2 = 8 ( x^2-9p^2 ) $$Step 2 :
Rewrite $ x^2-9p^2 $ as:
$$ \color{blue}{ x^2-9p^2 = (x)^2 - (3p)^2 } $$Now we can apply the difference of squares formula.
$$ I^2 - II^2 = (I - II)(I + II) $$After putting $ I = x $ and $ II = 3p $ , we have:
$$ x^2-9p^2 = (x)^2 - (3p)^2 = ( x-3p ) ( x+3p ) $$