Solving word problems involving fractions and percentages