Solving word problems with decimal fractions