Solving problems with ratios