Application of quadratic equations