Solve equations in word problems