Factoring trinomials and solving quadratic equations