Solving proportions for unknown variables