problem solving with quadratic equations