QUADRATIC WORD PROBLEMS