Solving equations with mistakes