Solving proportions in word problems