how to solve a perfect square of trinomials