Algebra equation solver