Solving word problems involving fractions