how to solve the problem of square of trinomial