give me an example of solving problems involving quadratic equations