how to solve 3p^2-2p-5 step by step without splitting the middle term