Solves the quadratic formula given variables a b and c