Determining if given ratios are proportions