Determining if two ratios are proportional