Solving equations with percentages