Solving linear and quadratic fuzzy equations