Solving problems with percentages