Solving proportions with ratios