quadratic equations in real-world applications