Solving proportions for finding values