Solving Problem Involving Quadratic Equation