7.8. formulating a quadratic equation in one variable to solve problems