Solving word problems with fractions