How do you factor #p^2-24p+108=0#?