Solving Word Problems Using Algebra