Solving two-step word problems using a model